Arnaud Delobelle <[email protected]> writes: [...] > That's because overriding __new__ doesn't prevent __init__ from being > executed. The reason for this is that when you do: > > MySingle('jeff') > > what is executed is: > > MySingle.__metaclass__.__call__('jeff')
Oops. I meant:
MySingle.__metaclass__.__call__(MySingle, 'jeff')
--
Arnaud
--
http://mail.python.org/mailman/listinfo/python-list
