__init__() not called automatically

Michele Simionato michele.simionato at gmail.com
Fri May 27 00:10:57 EDT 2005


If you really want, you can customize the object system
to automatically call __init__, via a custom metaclass.
There is an example in my ACCU lectures (cooperative_init.py):

http://www.reportlab.org/~andy/accu2005/pyuk2005_simionato_wondersofpython.zip

Michele Simionato




More information about the Python-list mailing list