This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author damianeads
Recipients damianeads
Date 2009-11-14.09:08:45
SpamBayes Score 0.0014830191
Marked as misclassified No
Message-id <1258189729.02.0.287684022873.issue7321@psf.upfronthosting.co.za>
In-reply-to
Content
The instructions for the C interface to the Python set class

  http://docs.python.org/c-api/set.html

say to use PyObject_GetIter and follow the iterator protocol. After
following the instructions for the iterator protocol here,

  http://docs.python.org/c-api/iter.html

I was able to successfully iterate through a set object. However,
PyIter_Check(obj) returns false yet set objects follow the iterator
protocol. Is this the correct behavior?

Thank you.

Kind regards,

Damian Eads
History
Date User Action Args
2009-11-14 09:08:49damianeadssetrecipients: + damianeads
2009-11-14 09:08:49damianeadssetmessageid: <1258189729.02.0.287684022873.issue7321@psf.upfronthosting.co.za>
2009-11-14 09:08:46damianeadslinkissue7321 messages
2009-11-14 09:08:46damianeadscreate