Interesting behaviour of the assignment

entropia entropiamax at jazzfree.com
Thu Dec 28 09:36:30 EST 2000


On Python2.0-win I obtain the same for every namber >=100

June Kim escribió:

> >>> 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?
>
> --
> http://www.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list