Skip to content

Commit 778928b

Browse files
authored
bpo-29304: Simplify dict lookup functions (GH-2407)
* remove hashpos parameter from lookdict functions. * remove many duplicated code from lookdict functions.
1 parent 87c3c5d commit 778928b

File tree

3 files changed

+132
-270
lines changed

3 files changed

+132
-270
lines changed

Objects/dict-common.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ typedef struct {
1212
* -1 when no entry found, -3 when compare raises error.
1313
*/
1414
typedef Py_ssize_t (*dict_lookup_func)
15-
(PyDictObject *mp, PyObject *key, Py_hash_t hash, PyObject **value_addr,
16-
Py_ssize_t *hashpos);
15+
(PyDictObject *mp, PyObject *key, Py_hash_t hash, PyObject **value_addr);
1716

1817
#define DKIX_EMPTY (-1)
1918
#define DKIX_DUMMY (-2) /* Used internally */

0 commit comments

Comments
 (0)