[Python-ideas] Secure string disposal (maybe other inmutable seq types too?)

Chris Angelico rosuav at gmail.com
Fri Jun 22 21:35:48 EDT 2018

On Sat, Jun 23, 2018 at 11:30 AM, Guido van Rossum <guido at python.org> wrote:
> Chris's proposal can be implemented, it would set a hidden flag. Hopefully
> there's room for the flag without increasing the object header size.

If I'm reading the include file correctly, the 'state' bitstruct has
eight bits with defined meanings, and then 24 of padding to ensure
alignment. Allocating one of those bits to say "sensitive" should be
100% backward-compatible.


More information about the Python-ideas mailing list