Kaydet (Commit) 1b8df107 authored tarafından INADA Naoki's avatar INADA Naoki Kaydeden (comit) GitHub

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

lookdict_unicode() and lookdict_unicode_nodummy() may raise exception
when key is not unicode.
üst c0866855
...@@ -677,7 +677,8 @@ Christian Tismer. ...@@ -677,7 +677,8 @@ Christian Tismer.
lookdict() is general-purpose, and may return DKIX_ERROR if (and only if) a lookdict() is general-purpose, and may return DKIX_ERROR if (and only if) a
comparison raises an exception. comparison raises an exception.
lookdict_unicode() below is specialized to string keys, comparison of which can 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 lookdict_unicode_nodummy is further specialized for string keys that cannot be
the <dummy> value. the <dummy> value.
For both, when the key isn't found a DKIX_EMPTY is returned. hashpos returns For both, when the key isn't found a DKIX_EMPTY is returned. hashpos returns
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment