diff options
Diffstat (limited to 'Objects/dictnotes.txt')
-rw-r--r-- | Objects/dictnotes.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/dictnotes.txt b/Objects/dictnotes.txt index b0e59a7..3b63197 100644 --- a/Objects/dictnotes.txt +++ b/Objects/dictnotes.txt @@ -44,7 +44,7 @@ Uniquification d.setdefault(word, []).append(pagenumber) Note, the second example is a use case characterized by a get and set - to the same key. There are similar used cases with a __contains__ + to the same key. There are similar use cases with a __contains__ followed by a get, set, or del to the same key. Part of the justification for d.setdefault is combining the two lookups into one. |