Why does __init__ not get called?

Fuzzyman fuzzyman at gmail.com
Fri Aug 12 03:24:38 EDT 2005


If you subclass strings you have to do your magic in __new__ rather
than __init__. It receives the same arguments as you would normally
expect to go to __init__.

(Except cls rather than self).

Best Regards,

Fuzzy
http://www.voidspace.org.uk/python




More information about the Python-list mailing list