[issue31753] Unnecessary closure in ast.literal_eval
Thierry Excoffier
report at bugs.python.org
Wed May 12 13:06:19 EDT 2021
Thierry Excoffier <thierry.excoffier at gmail.com> added the comment:
I assumed that the standard python library does not create circular references, so the GC can be disabled safely in real time application.
Each time 'literal_eval' is called, it creates a circular reference and so a memory leak.
The source of this leak is the recursive closure.
----------
nosy: +thierry.excoffier
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31753>
_______________________________________
More information about the Python-bugs-list
mailing list