Gabriel Genellina escreveu:
> En Fri, 16 Mar 2007 22:05:05 -0300, Paulo da Silva
> <[EMAIL PROTECTED]> escribió:
...

> class C(object):
> 
>     def __new__(cls, filename=None, foo=None, bar=None):
>         if filename is not None:
>             return cls.load(filename)
>         inst = super(C, cls).__new__(cls)


This makes the difference! I didn't know how to "build" an
instance inside __new__.

Thank you very much Gabriel.
Paulo
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to