bpo-24274: fix erroneous comment in dictobject.c (GH-200)

lookdict_unicode() and lookdict_unicode_nodummy() may raise exception
when key is not unicode.
This commit is contained in:
INADA Naoki 2017-02-20 22:58:11 +09:00 committed by GitHub
parent 9a4577a4bb
commit ce552e2d5c
1 changed files with 2 additions and 1 deletions

View File

@ -676,7 +676,8 @@ Christian Tismer.
lookdict() is general-purpose, and may return DKIX_ERROR if (and only if) a
comparison raises an exception.
lookdict_unicode() below is specialized to string keys, comparison of which can
never raise an exception; that function can never return DKIX_ERROR.
never raise an exception; that function can never return DKIX_ERROR when key
is string. Otherwise, it falls back to lookdict().
lookdict_unicode_nodummy is further specialized for string keys that cannot be
the <dummy> value.
For both, when the key isn't found a DKIX_EMPTY is returned. hashpos returns