Subclass of int and initialisation with not integer values
holger krekel
pyth at devel.trillke.net
Wed Apr 24 12:38:57 EDT 2002
> In fact I found the answer, it is that __new__ is called before __init__
> and as a true int is return by new, __init__ is called too late.
> So i solved my problem by redefining __new__ instead of __init__.
> Sorry for this useless post.
far away from it. After all metaclasses are
just in the process of beeing understood by the wider
community (including myself) even though the python-gods
and demi-gods might smile at at us :-)
holger
More information about the Python-list
mailing list