Title: Make public the current private known hash functions in the C-API
Type: Stage:
Components: Interpreter Core Versions: Python 3.7
Status: open Resolution:
Dependencies: 28123 Superseder:
Assigned To: Nosy List: rhettinger, serhiy.storchaka
Priority: normal Keywords:

Created on 2016-10-16 23:42 by rhettinger, last changed 2016-10-23 20:25 by serhiy.storchaka.

Messages (2)
msg278788 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2016-10-16 23:42
The known-hash variants for dict getitem/setitem/delitem have proven useful to us for writing fast C code.  They may be useful to others as well.  There does not seem to be any other way of getting to this functionality.
msg279284 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2016-10-23 20:25
Semantic of _PyDict_GetItem_KnownHash is not clear. Should it correspond PyDict_GetItem or PyDict_GetItemWithError? See issue28123.
Date User Action Args
2016-10-23 20:25:07serhiy.storchakasetnosy: + serhiy.storchaka
dependencies: + _PyDict_GetItem_KnownHash ignores DKIX_ERROR return
messages: + msg279284
2016-10-16 23:42:23rhettingercreate