From the Python documentation:
6.2.2. Literals
...
Multiple evaluations of literals with the same value (either the same occurrence in the program text or a different occurrence) may obtain the same object or a different object with the same value.
I need to understand this passage above but find it uneasy. I need your help to clarify certain things:
>>> " Got any rivers you think are uncrossable ?" #1
' Got any rivers you think are uncrossable ?' #2
>>> " Got any rivers you think are uncrossable ?" #3
' Got any rivers you think are uncrossable ?' #4
#1 and #3 are two literals with the same value that obtain the same objects #2 and #4 respectively. The value of these objects is the same. How could their evaluation obtain different objects with the same value? What has occurrence to do with the result of evaluation here?
either the same occurrence in the program text or a different occurrence
How to distinguish between the same occurrence and a different occurrence ? And what has the place of occurrence to do with the result of evaluation ?