Integer coercion and 2.2 Type/Class changes
Delaney, Timothy
tdelaney at avaya.com
Sun Oct 28 17:07:16 EST 2001
> From: Guido van Rossum [mailto:guido at python.org]
> com-nospam at ccraig.org (Christopher A. Craig) writes:
>
> > Consider the following Python 2.2 code:
> >
> > >>> class foo(int):
> > ... def __init__(self, n=0):
> > ... self=n
>
> This __init__ is a total no-op. The assignment to self is a local
Well, not a total no-op. It takes more time after all ...
Tim Delaney
More information about the Python-list
mailing list