From 61f82e0e337f971da57f8f513abfe693edf95aa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Fri, 20 Apr 2018 23:08:45 +0300 Subject: Spelling fixes to docs, docstrings, and comments (GH-6374) --- Objects/dictobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Objects/dictobject.c') diff --git a/Objects/dictobject.c b/Objects/dictobject.c index acf757c967..7a1bcebec6 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -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. -- cgit v1.2.1