String interning in Python 3
String interning in Python 3 - missing or moved?
Chris Angelico rosuav at gmail.comMon Jan 23 19:38:36 EST 2012
- Previous message (by thread): python.org mailman web interface problem
- Next message (by thread): String interning in Python 3 - missing or moved?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Python 2 can intern 'str' (bytes) strings (with the eponymous builtin, and with C API functions), though not unicode. Python 3 does not have that builtin, nor the C API; I can't find any support for either str or bytes. Has it been moved, or is interning as a concept deprecated? I don't have a use case, just curiosity at the moment - looking into various languages' dictionary/mapping implementations (Python hashes strings for each dict, Lua interns them - by basically putting them all into one huge hashtable). ChrisA
- Previous message (by thread): python.org mailman web interface problem
- Next message (by thread): String interning in Python 3 - missing or moved?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list