Message171086
| 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:10 | christian.heimes | set | recipients:
+ christian.heimes, docs@python, nparikh |
| 2012年09月24日 00:26:10 | christian.heimes | set | messageid: <1348446370.53.0.430687883052.issue16011@psf.upfronthosting.co.za> |
| 2012年09月24日 00:26:09 | christian.heimes | link | issue16011 messages |
| 2012年09月24日 00:26:09 | christian.heimes | create |
|