Message174633
The documentation in Python 2.7, 3.2, and 3.3 claim that:
PyObject* PySequence_Fast(PyObject *o, const char *m)
Return value: New reference.
Returns the sequence o as a tuple, unless it is already a tuple or list, in which case o is returned...
Unfortunately, the code does this in Objects/abstract.c:
v = PySequence_List(it);
And the header file in Include/abstract.h matches the documentation:
PyAPI_FUNC(PyObject *) PySequence_Fast(PyObject *o, const char* m);
/*
Returns the sequence, o, as a tuple, unless it's already a
tuple or list.
*/ |
|
Date |
User |
Action |
Args |
2012-11-03 15:18:21 | sfllaw | set | recipients:
+ sfllaw |
2012-11-03 15:18:21 | sfllaw | set | messageid: <1351955901.81.0.627286470446.issue16395@psf.upfronthosting.co.za> |
2012-11-03 15:18:21 | sfllaw | link | issue16395 messages |
2012-11-03 15:18:21 | sfllaw | create | |
|