[Python-checkins] r54466 - in python/branches/release25-maint: Include/setobject.h Lib/test/test_set.py Objects/dictobject.c Objects/setobject.c

Anthony Baxter anthony at interlink.com.au
Wed Mar 21 16:08:52 CET 2007


On Wednesday 21 March 2007 22:27, A.M. Kuchling wrote:
> On Wed, Mar 21, 2007 at 03:06:44PM +1100, Anthony Baxter wrote:
> > Why is new behaviour and a new C API being added to Python
> > 2.5???
>
> -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);
>
> Isn't the new function is Python-internal, not part of the
> official API, because of the leading underscore?

Unless I'm mistaken, it's also adding the ability to pass a set to 
the dict constructor.

-- 
Anthony Baxter     <anthony at interlink.com.au>
It's never too late to have a happy childhood.


More information about the Python-checkins mailing list