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 sfllaw
Recipients sfllaw
Date 2012-11-03.15:18:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1351955901.81.0.627286470446.issue16395@psf.upfronthosting.co.za>
In-reply-to
Content
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.
       */
History
Date User Action Args
2012-11-03 15:18:21sfllawsetrecipients: + sfllaw
2012-11-03 15:18:21sfllawsetmessageid: <1351955901.81.0.627286470446.issue16395@psf.upfronthosting.co.za>
2012-11-03 15:18:21sfllawlinkissue16395 messages
2012-11-03 15:18:21sfllawcreate