Identity inconsistency and unification of types and classes
by Rim other posts by this author
Jul 1 2003 3:43AM messages near this date
Re: Howto: extract a 'column' from a list of lists into a new list?
|
Re: Identity inconsistency and unification of types and classes
Hi,
With the great unification of types and classes, what will happen to the
following identity inconsistency?
> >> class myint(int): pass
...
> >> a=int(1); b=int(1)
> >> a is b
1
> >> a=myint(1); b=myint(1)
> >> a is b
0
Thanks
- Rim
--
http://mail.python.org/mailman/listinfo/python-list
Thread:
Rim
Michael Hudson
Moshe Zadka
Erik Max Francis
|