[issue34386] Expose a dictionary of interned strings in sys module
Ronald Oussoren
report at bugs.python.org
Mon Aug 13 04:23:44 EDT 2018
Ronald Oussoren <ronaldoussoren at mac.com> added the comment:
IMHO we shouldn't expose the intern dictionary without there being a clear, and good enough, use case for doing so.
Exposing the dictionary decreases implementation flexibility, and increases requirements on other implementations. One example of the former: at least in theory the interning dictionary could be a set, but we couldn't make that change if the dictionary were exposed in the API.
With current information I'm -1 on exposing the dictionary, and -0 on doing that for debug builds only.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34386>
_______________________________________
More information about the Python-bugs-list
mailing list