Message12179
Python's "is" corresponds to Java's == and Python's == corresponds to Java's equals. So you see that the same string literal created twice should not be the same object. CPython applies some memory optimization here called string interning. Jython uses interning as well, but currently not on literals. AFAIK it uses it on dictionary keys only. |
|
Date |
User |
Action |
Args |
2018-11-10 21:00:32 | stefan.richthofer | set | messageid: <1541883632.26.0.788709270274.issue2716@psf.upfronthosting.co.za> |
2018-11-10 21:00:32 | stefan.richthofer | set | recipients:
+ stefan.richthofer, k870611 |
2018-11-10 21:00:32 | stefan.richthofer | link | issue2716 messages |
2018-11-10 21:00:32 | stefan.richthofer | create | |
|