PEP 509: fix typos reported by Brett

This commit is contained in:
Victor Stinner 2016-04-14 18:43:28 +02:00
parent 2caed0265e
commit 24ca07b6c9
1 changed files with 4 additions and 4 deletions

View File

@ -74,7 +74,7 @@ Pseudo-code of an fast guard to check if a dictionary entry was modified
self.version = dict_get_version(dict)
def check(self):
"""Return True if the dictionary entry did not changed
"""Return True if the dictionary entry did not change
and the dictionary was not replaced."""
# read the version of the dict structure
@ -166,7 +166,7 @@ Changes
=======
Add a ``ma_version_tag`` field to the ``PyDictObject`` structure with
the C type ``PY_INT64_T``, 64-bit unsigned integer. Add also a global
the C type ``PY_UINT64_T``, 64-bit unsigned integer. Add also a global
dictionary version. Each time a dictionary is created, the global
version is incremented and the dictionary version is initialized to the
global version. The global version is also incremented and copied to the
@ -326,7 +326,7 @@ version to avoid the strong reference to the value (only strong
references to the dictionary and to the key are needed).
Changes: add a ``me_version`` field to the ``PyDictKeyEntry`` structure,
the field has the C type ``PY_INT64_T``. When a key is created or
the field has the C type ``PY_UINT64_T``. When a key is created or
modified, the entry version is set to the dictionary version which is
incremented at any change (create, modify, delete).
@ -344,7 +344,7 @@ using hypothetical ``dict_get_version(dict)``
self.entry_version = dict_get_entry_version(dict, key)
def check(self):
"""Return True if the dictionary entry did not changed
"""Return True if the dictionary entry did not change
and the dictionary was not replaced."""
# read the version of the dict structure