Re: __init__() not called automatically
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: __init__() not called automatically

From: Michele Simionato <michele.simionato@gmail.com>
Date: Fri May 27 2005 - 06:10:57 CEST

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
Received on Thu Sep 29 16:14:43 2005