jvs

Results 6 comments of jvs

The memory leak occurs with both the C version and the fallback version (using Python 3.12). In the fallback module, if you remove the call to `sys.intern`, then the leak...

Sounds related: https://github.com/python/cpython/issues/113993

In Python 3.12, it sounds like all intern'd strings are immortal now. The documentation for `intern` is out of date at the moment. That explains why memory use continues to...

The documentation for `sys.intern` explains, "Interned strings are not immortal; you must keep a reference to the return value of intern() around to benefit from it." Some open source libraries...

Does this mean that `PyDict_SetItemString` will also immortalize its `key` argument? Will every key passed to `PyDict_SetItemString` live forever? It seems like that could also be a source of leaks....

This seems like a breaking change that is kind of flying under the radar. The documentation explains, "Interned strings are not immortal; you must keep a reference to the return...