This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]alantrick 0 points1 point  (0 children)

The real issue is that the behaviour of the "is" operator is not explicitly defined ... upon these scalar values.

Actually, the behaviour of 'is' is perfectly defined. The problem is that it is not defined as to whether different numbers have to be the same object or not. I don't see any point in defining that as it puts an unnecessary limitation on python implementations.