Message94599
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()?
} |
|
Date |
User |
Action |
Args |
2009-10-28 01:56:06 | belopolsky | set | recipients:
+ belopolsky, rhettinger, benjamin.peterson, wrichert |
2009-10-28 01:56:06 | belopolsky | set | messageid: <1256694966.14.0.898654340475.issue7212@psf.upfronthosting.co.za> |
2009-10-28 01:56:04 | belopolsky | link | issue7212 messages |
2009-10-28 01:56:04 | belopolsky | create | |
|