Subclass of int and initialisation with not integer values

Terry Reedy tejarex at yahoo.com
Wed Apr 24 11:47:13 EDT 2002


"Boris Boutillier" <boris.boutillier at lip6.fr> wrote in message
news:pan.2002.04.24.17.09.52.840883.17049 at lip6.fr...
> I've got a little problem with subclass of int.
...
> In some way it seems that the int initialisation is called before
__init__

You can verify this, to be sure, by sprinkling toto.__init__() with
print statements.

TJR






More information about the Python-list mailing list