From 24ca07b6c9a78810d009b3cdfb64d9ec9120796c Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 14 Apr 2016 18:43:28 +0200 Subject: [PATCH] PEP 509: fix typos reported by Brett --- pep-0509.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pep-0509.txt b/pep-0509.txt index 704752f31..7d028a60a 100644 --- a/pep-0509.txt +++ b/pep-0509.txt @@ -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