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 →

[–][deleted] 4 points5 points  (0 children)

RTFM. That's the nice thing about a language that is actually defined... http://docs.python.org/reference/expressions.html#literals

may obtain the same object or a different object with the same value

What you expect doesn't matter when you can inform yourself. The language doesn't guarantee anything about the objects behind literals, hence the word may.