Interesting behaviour of the assignment

June Kim junaftnoon at nospamplzyahoo.com
Thu Dec 28 05:25:14 EST 2000


>>> a=100
>>> b=100
>>> a is b
0
>>> a=99
>>> b=99
>>> a is b
1

Is this an intended/expected result? What is the lying structure beneath
this?





More information about the Python-list mailing list