En Thu, 22 Mar 2007 13:19:52 -0300, Frank Benkstein
<[EMAIL PROTECTED]> escribió:
> Yet [1] says: "[...] some rules for __new__: [...] If you return an
> object of a different class, its __init__ method will be called."
That was true at that time (2.2 initial), but not now. See
http://www.pyt
On Mar 22, 10:19 am, Frank Benkstein <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> the behaviour I always observed when creating instances by calling the
> class A is that '__init__' is always only called when the object
> returned by A.__new__ is an instance of A. This can be observed by the
> following co