[issue34386] Expose a dictionary of interned strings in sys module
New submission from Artem Golubin : Python provides an ability to intern strings (sys.intern). It would be useful to expose a read-only dictionary of interned strings to the Python users so we can see what kind of strings are interned. It takes minimal changes since internally it's just a dictionary. Is this worth adding to the sys module? -- components: Interpreter Core messages: 323437 nosy: rushter priority: normal severity: normal status: open title: Expose a dictionary of interned strings in sys module type: enhancement versions: Python 3.8 ___ Python tracker <https://bugs.python.org/issue34386> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34386] Expose a dictionary of interned strings in sys module
Artem Golubin added the comment: Thank you, I agree. I can't come up with practical use cases other than my curiosity. Is it possible to somehow expose the dictionary in the debug build of Python? Currently, there is no way to access it from the interpreter even with ctypes. -- ___ Python tracker <https://bugs.python.org/issue34386> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com