[Tutor] Need some clarification on this
joel.goldstick at gmail.com
Sat Mar 19 16:01:17 CET 2011
2011/3/19 Yaşar Arabacı <yasar11732 at gmail.com>
> >>>a == b
> >>>a is b
> My question is, why "a is b" is true. What I expected it to be is that, a
> and b are different things with same value.
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
Oops. I misread your post. I (why I don't know) thought I saw a = 5, b =
a and b are names. Python has an integer of 5 from a = 5, so it just refers
to that same object with b.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor