diff options
| author | Raymond Hettinger <python@rcn.com> | 2007-02-19 03:04:45 +0000 |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2007-02-19 03:04:45 +0000 |
| commit | 1bff7969832877398b129a97ad8d307c27c80fba (patch) | |
| tree | 392e02958b3be31f28a71c77815bda867698aab4 /Include | |
| parent | 497380f48c266a1d1addc4a20a93aef9a380ffdf (diff) | |
| download | cpython-git-1bff7969832877398b129a97ad8d307c27c80fba.tar.gz | |
Extend work on revision 52962: Eliminate redundant calls to PyObject_Hash().
Diffstat (limited to 'Include')
| -rw-r--r-- | Include/dictobject.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/dictobject.h b/Include/dictobject.h index fd3d1fc352..44b0838e04 100644 --- a/Include/dictobject.h +++ b/Include/dictobject.h @@ -100,12 +100,15 @@ PyAPI_FUNC(int) PyDict_DelItem(PyObject *mp, PyObject *key); PyAPI_FUNC(void) PyDict_Clear(PyObject *mp); PyAPI_FUNC(int) PyDict_Next( PyObject *mp, Py_ssize_t *pos, PyObject **key, PyObject **value); +PyAPI_FUNC(int) _PyDict_Next( + PyObject *mp, Py_ssize_t *pos, PyObject **key, PyObject **value, long *hash); PyAPI_FUNC(PyObject *) PyDict_Keys(PyObject *mp); PyAPI_FUNC(PyObject *) PyDict_Values(PyObject *mp); PyAPI_FUNC(PyObject *) PyDict_Items(PyObject *mp); PyAPI_FUNC(Py_ssize_t) PyDict_Size(PyObject *mp); PyAPI_FUNC(PyObject *) PyDict_Copy(PyObject *mp); PyAPI_FUNC(int) PyDict_Contains(PyObject *mp, PyObject *key); +PyAPI_FUNC(int) _PyDict_Contains(PyObject *mp, PyObject *key, long hash); /* PyDict_Update(mp, other) is equivalent to PyDict_Merge(mp, other, 1). */ PyAPI_FUNC(int) PyDict_Update(PyObject *mp, PyObject *other); |
