[Python-Dev] PySet_Next (Was: PySet API) (original) (raw)

Barry Warsaw barry at python.org
Mon Mar 27 16:24:03 CEST 2006


On Sun, 2006-03-26 at 13:24 -0500, Raymond Hettinger wrote:

We have a perfectly good way to iterate with PyIterNext(). It may take a couple of extra lines, but it is easy to get correct and has no surprises. It seems that the only issue is that Barry says that he refuses to use the iterator protocol. Heck, just turn it into a list and index directly. There is no need to muck-up the set api for this.

I just think you have a narrow vision of how Python sets can be used in a C application.

-Barry

-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 309 bytes Desc: This is a digitally signed message part Url : http://mail.python.org/pipermail/python-dev/attachments/20060327/7de55752/attachment.pgp



More information about the Python-Dev mailing list