diff options
author | Raymond Hettinger <python@rcn.com> | 2007-03-20 21:45:04 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2007-03-20 21:45:04 +0000 |
commit | f94e89c57801ffdc17c7246704c7e1c41bbc4791 (patch) | |
tree | 2efd9f3a72c85f9417cc6e511de6399fe231ad13 /Include/setobject.h | |
parent | 42f4cfa9b6612206258a0735f97c863cd14e2d03 (diff) | |
download | cpython-git-f94e89c57801ffdc17c7246704c7e1c41bbc4791.tar.gz |
Extend work on rev 52962 and 53830 eliminating redundant PyObject_Hash() calls and fixing set/dict interoperability.
Diffstat (limited to 'Include/setobject.h')
-rw-r--r-- | Include/setobject.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/setobject.h b/Include/setobject.h index a16c2f7cdc..750a2a8a21 100644 --- a/Include/setobject.h +++ b/Include/setobject.h @@ -82,7 +82,8 @@ PyAPI_FUNC(int) PySet_Clear(PyObject *set); PyAPI_FUNC(int) PySet_Contains(PyObject *anyset, PyObject *key); PyAPI_FUNC(int) PySet_Discard(PyObject *set, PyObject *key); PyAPI_FUNC(int) PySet_Add(PyObject *set, PyObject *key); -PyAPI_FUNC(int) _PySet_Next(PyObject *set, Py_ssize_t *pos, PyObject **entry); +PyAPI_FUNC(int) _PySet_Next(PyObject *set, Py_ssize_t *pos, PyObject **key); +PyAPI_FUNC(int) _PySet_NextEntry(PyObject *set, Py_ssize_t *pos, PyObject **key, long *hash); PyAPI_FUNC(PyObject *) PySet_Pop(PyObject *set); PyAPI_FUNC(int) _PySet_Update(PyObject *set, PyObject *iterable); |