From: INADA Naoki Date: Mon, 20 Feb 2017 11:29:30 +0000 (+0900) Subject: bpo-24274: fix comment in dictobject.c (GH-194) X-Git-Tag: v3.5.4rc1~338 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66fa9d4205e0da672ed19a397069281a4b177af4;p=thirdparty%2FPython%2Fcpython.git bpo-24274: fix comment in dictobject.c (GH-194) --- diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 7299f36b2bf8..e277ab87e7bf 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -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 value. For both, when the key isn't found a PyDictEntry* is returned