Message95229
| 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:49 | damianeads | set | recipients: + damianeads |
| 2009-11-14 09:08:49 | damianeads | set | messageid: <1258189729.02.0.287684022873.issue7321@psf.upfronthosting.co.za> |
| 2009-11-14 09:08:46 | damianeads | link | issue7321 messages |
| 2009-11-14 09:08:46 | damianeads | create | |