[Python-Dev] Object creation hook

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Jan 26 23:10:46 CET 2007


Kristján V. Jónsson wrote:

> (I was a bit dismayed that I couldn't assign to object.__init__ 
> post-hoc from a python script, I'm fairly sure that is possible in Ruby :)  

It wouldn't do you much good anyway, because no existing
subclass of object having its own __init__ method would
call it.

--
Greg



More information about the Python-Dev mailing list