From: Benjamin Peterson Date: Tue, 8 Apr 2014 14:50:54 +0000 (-0400) Subject: PySequence_Fast generally returns a list (#16305) X-Git-Tag: v2.7.7rc1~80 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95d8acfde3e46efdfa843002babe2cfe9b2465bb;p=python PySequence_Fast generally returns a list (#16305) --- diff --git a/Include/abstract.h b/Include/abstract.h index a377423868..2a18798c03 100644 --- a/Include/abstract.h +++ b/Include/abstract.h @@ -1149,7 +1149,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/ PyAPI_FUNC(PyObject *) PySequence_Fast(PyObject *o, const char* m); /* - Returns the sequence, o, as a tuple, unless it's already a + Returns the sequence, o, as a list, unless it's already a tuple or list. Use PySequence_Fast_GET_ITEM to access the members of this list, and PySequence_Fast_GET_SIZE to get its length.