[New-bugs-announce] [issue44206] Add a version number to dict keys.
report at bugs.python.org
Fri May 21 11:38:13 EDT 2021
New submission from Mark Shannon <mark at hotpy.org>:
Add a version number to dict keys.
PEP 509 added a version number to dicts. Unfortunately this is no use for optimizing attribute loads and store on instances.
We need to know whether the keys are as expected, not the dict as that is likely to be different each time.
We can add a 32 bit version number and actually reduce memory use by taking advantage of the redundancy in the rest of the keys object.
nosy: Mark.Shannon, methane, vstinner
stage: needs patch
title: Add a version number to dict keys.
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce