Author: christian.heimes
Date: Thu Jan 31 02:08:32 2008
New Revision: 60467

Modified:
   python/branches/py3k/Include/setobject.h
   python/branches/py3k/Objects/setobject.c
Log:
Fixed r60466

Modified: python/branches/py3k/Include/setobject.h
==============================================================================
--- python/branches/py3k/Include/setobject.h    (original)
+++ python/branches/py3k/Include/setobject.h    Thu Jan 31 02:08:32 2008
@@ -85,7 +85,6 @@
 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 **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);

Modified: python/branches/py3k/Objects/setobject.c
==============================================================================
--- python/branches/py3k/Objects/setobject.c    (original)
+++ python/branches/py3k/Objects/setobject.c    Thu Jan 31 02:08:32 2008
@@ -2236,6 +2236,7 @@
        Py_ssize_t i;
        PyObject *elem=NULL, *dup=NULL, *t, *f, *dup2, *x;
        PyObject *ob = (PyObject *)so;
+       long hash;
 
        /* Verify preconditions and exercise type/size checks */
        assert(PyAnySet_Check(ob));
@@ -2280,7 +2281,7 @@
 
        /* Exercise direct iteration */
        i = 0, count = 0;
-       while (_PySet_Next((PyObject *)dup, &i, &x)) {
+       while (_PySet_NextEntry((PyObject *)dup, &i, &x, &hash)) {
                s = PyUnicode_AsString(x);
                assert(s && (s[0] == 'a' || s[0] == 'b' || s[0] == 'c'));
                count++;
_______________________________________________
Python-3000-checkins mailing list
Python-3000-checkins@python.org
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to