-On [20080113 13:36], Fredrik Lundh ([EMAIL PROTECTED]) wrote:
>given that they do different things, I'm not sure it's that helpful to 
>describe them *both* as constructors.

I am still behind in my learning. ;)

To restate it more correctly: __init__ is akin to a constructor.

I am not entirely sure I fully understand __new__'s semantics though. The
first read-through of http://docs.python.org/ref/customization.html makes it
sound very similar to a call like: var = Object(arguments=...)

I must not be understanding something and __new__'s documentation there is not
that clear to me, to be honest.

-- 
Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai
イェルーン ラウフロック ヴァン デル ウェルヴェン
http://www.in-nomine.org/ | http://www.rangaku.org/
I think, therefore I am...
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to