[Tutor] __new__ over __init__

Payal payal-python at scriptkitchen.com
Thu Sep 2 13:26:27 CEST 2010


On Wed, Sep 01, 2010 at 09:14:50AM +0100, Alan Gauld wrote:
> It is an abbreviation for class. The first parameter to new() must be a 
> refernce to the class.
> It is similar to self in an instance method, where the first parameter  
> is a reference
> to the instance.

Thanks a lot.

With warm regards,
-Payal
-- 




More information about the Tutor mailing list