Alexander Belopolsky <belopol...@users.sourceforge.net> added the comment:

Any reason you don't want to call set_next from set_get?

I would say

static PyObject *
set_get(PySetObject *so)
{
        register Py_ssize_t pos = 0;
        register setentry *entry;
        if (set_next(so, &pos, &entry)) {
              Py_INCREF(entry->key);
              return entry->key;
        }
        /* set appropriate error */
        return NULL;
}

BTW, what your patch is supposed to do on set().get()?
}

----------
nosy: +belopolsky

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7212>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to