]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-24274: fix comment in dictobject.c (GH-194)
authorINADA Naoki <methane@users.noreply.github.com>
Mon, 20 Feb 2017 11:29:30 +0000 (20:29 +0900)
committerGitHub <noreply@github.com>
Mon, 20 Feb 2017 11:29:30 +0000 (20:29 +0900)
Objects/dictobject.c

index 7299f36b2bf88cdd4e631fcc7a6bbb5857ebe3a3..e277ab87e7bfae877b0a932191a31a9d28fa331c 100644 (file)
@@ -429,7 +429,7 @@ Christian Tismer.
 lookdict() is general-purpose, and may return NULL if (and only if) a
 comparison raises an exception (this was new in Python 2.5).
 lookdict_unicode() below is specialized to string keys, comparison of which can
-never raise an exception; that function can never return NULL.
+never raise an exception; that function must not return NULL for string key.
 lookdict_unicode_nodummy is further specialized for string keys that cannot be
 the <dummy> value.
 For both, when the key isn't found a PyDictEntry* is returned