> x = intern('12345'*4) > nx = id(x) > del x > ...do something else... > y = intern('12345'*4) > ny = id(y) > > nx doesn't necessarily equal ny any more. This is a backward > incompatibility If you wrote something like that *expecting* the strings to be immortal, there would be no reason to bother with the ids -- just keep references to the strings themselves. If you *weren't* expecting them to be immortal, there would be no reason to expect the ids to be equal anyway. So I agree -- it's not a problem. Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg@cosc.canterbury.ac.nz +--------------------------------------+
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4