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 christian.heimes
Recipients christian.heimes, docs@python, nparikh
Date 2012-09-24.00:26:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1348446370.53.0.430687883052.issue16011@psf.upfronthosting.co.za>
In-reply-to
Content
The internal API is limited to flags as the sq_contains slot and the API function can only return an int:

  PyAPI_FUNC(int) PySequence_In(PyObject *o, PyObject *value)

In order to return the Python object we'd have to alter the API which we can't do as the type slot and the function is part of the stable API and ABI.

A doc update should explain why the code doesn't behave as you expect it.
History
Date User Action Args
2012-09-24 00:26:10christian.heimessetrecipients: + christian.heimes, docs@python, nparikh
2012-09-24 00:26:10christian.heimessetmessageid: <1348446370.53.0.430687883052.issue16011@psf.upfronthosting.co.za>
2012-09-24 00:26:09christian.heimeslinkissue16011 messages
2012-09-24 00:26:09christian.heimescreate