[Python-Dev] PEP 509: Add a private version to dict

Yury Selivanov yselivanov.ml at gmail.com
Wed Jan 20 14:23:43 EST 2016



On 2016-01-20 2:09 PM, Maciej Fijalkowski wrote:
>> >
> You don't free a version tag that's stored in the guard. You store the
> object and not id

Ah, got it.  Although for my current cache design it would be
more memory efficient to use the dict itself to store its own
unique id and tag, hence my "ma_extra" proposal.  In any case,
the current "ma_version" proposal is flawed :(

Yury


More information about the Python-Dev mailing list