PEP 509: add alternatives

This commit is contained in:
Victor Stinner 2016-01-10 00:30:32 +01:00
parent 534db9e409
commit 95ff7961ed
1 changed files with 17 additions and 0 deletions

View File

@ -230,6 +230,23 @@ any overhead on dictionary operations.
Alternatives Alternatives
============ ============
Bikeshedding on the property name
---------------------------------
* ``__cache_token__``: name proposed by Nick Coghlan, name coming from
`abc.get_cache_token()
<https://docs.python.org/3/library/abc.html#abc.get_cache_token>`_.
* ``__version__``
* ``__timestamp__``
Add a version but don't expose it at the Python level
-----------------------------------------------------
Guards can be implemented in C to access directly the ``ma_version``
field of the ``PyDictObject`` structure.
Add a version to each dict entry Add a version to each dict entry
-------------------------------- --------------------------------