[issue28123] _PyDict_GetItem_KnownHash ignores DKIX_ERROR return

Xiang Zhang report at bugs.python.org
Fri Sep 16 03:24:14 EDT 2016


Xiang Zhang added the comment:

Yes, ignoring exceptions is due to historical reasons. Although it's used rarely but I am still afraid changing it may break knowledge of devs that are already familiar with dict APIs. And what's more is there already exists two versions of getitem, one version with no exceptions and one version propagates exceptions (witherror), maybe we can also introduce a _PyDict_GetItem_KnownHashWithError?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28123>
_______________________________________


More information about the Python-bugs-list mailing list