On Sep 15, 1:35 am, Chris Rebert <c...@rebertia.com> wrote:
> Override __new__() instead:
> http://docs.python.org/reference/datamodel.html#object.__new__

Aha.. thanks!  The reference book I'm working from neglects to mention
__new__, so I'd assumed __init__ was the constructor.  It hadn't
occurred to me that python would separate the functions (I still don't
see exactly why it would be useful to do that, but perhaps insight
will come with time).

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to