tutor  

Re: [Tutor] __new__ over __init__

Payal
Thu, 02 Sep 2010 04:28:30 -0700

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
-- 


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor