mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Typo fix
This commit is contained in:
parent
d5624cf6c9
commit
eabc0e87af
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue