Spelling fixes to docs, docstrings, and comments (GH-6374)

This commit is contained in:
Ville Skyttä 2018-04-20 23:08:45 +03:00 committed by Terry Jan Reedy
parent 0399cf9b5e
commit 61f82e0e33
15 changed files with 16 additions and 16 deletions

View file

@ -2573,7 +2573,7 @@ PyDict_Copy(PyObject *o)
(3) if 'mp' is non-compact ('del' operation does not resize dicts),
do fast-copy only if it has at most 1/3 non-used keys.
The last condition (3) is important to guard against a pathalogical
The last condition (3) is important to guard against a pathological
case when a large dict is almost emptied with multiple del/pop
operations and copied after that. In cases like this, we defer to
PyDict_Merge, which produces a compacted copy.