Re: [Pyobjc-dev] Inheritance questions....
Brought to you by:
ronaldoussoren
From: Jiva D. <ji...@de...> - 2004-04-14 21:51:51
|
Thanks, that's very helpful. Is there a good place to read up on this subject? (Docs?) On Apr 14, 2004, at 2:32 PM, Bob Ippolito wrote: >> class BaseView(NSView): >> def __new__(cls, *args, **kwargs): >> return cls.alloc().init() > > Is this really a good idea? > This is taken straight from some example (I forget which) - as a "pythonic constructor" so I can use this class in another python file more pythonically... Mainly, I use it for unit testing... (if ever) -- Jiva DeVoe jiva at devoesquared.com http://www.devoesquared.com |