PEP 509: add alternatives
This commit is contained in:
parent
534db9e409
commit
95ff7961ed
17
pep-0509.txt
17
pep-0509.txt
|
@ -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
|
||||||
--------------------------------
|
--------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue