[issue34386] Expose a dictionary of interned strings in sys module

2018-08-12 Thread Artem Golubin
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 c

[issue34386] Expose a dictionary of interned strings in sys module

2018-08-12 Thread Artem Golubin
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 j