[issue43357] Python memory cleaning

Gregory P. Smith report at bugs.python.org
Sat Mar 13 05:18:28 EST 2021


Gregory P. Smith <greg at krypto.org> added the comment:

CPython itself doesn't have guaranteed way to do this kind of thing.  There is no tracking of which types clear memory let alone which API calls may make copies of data in places within their C that are not explicitly cleared afterwards.  We do not have a plan to implement this.

For data that MUST NOT remain in memory in any form anywhere as soon as code is done with it, the best thing to do is isolate all code inputting, processing, and clearing that within the confines of a lower level extension module or a short lived subprocess.

----------
nosy: +gregory.p.smith
resolution:  -> rejected
stage:  -> resolved
status: open -> closed
type: security -> enhancement
versions: +Python 3.10 -Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43357>
_______________________________________


More information about the Python-bugs-list mailing list