summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-04-08 14:48:36 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-04-08 14:48:36 (GMT)
commitce0700ae7a192a142559db7653b0a59004ec6071 (patch)
tree894b461825a651eb8065089d1fc4d9d98ddc356a
parentf0f7844f38ff692aa6add3af9cf9395544654cbc (diff)
downloadcpython-ce0700ae7a192a142559db7653b0a59004ec6071.zip
cpython-ce0700ae7a192a142559db7653b0a59004ec6071.tar.gz
cpython-ce0700ae7a192a142559db7653b0a59004ec6071.tar.bz2
PySequence_Fast generally returns a list not a tuple (closes #16395)
-rw-r--r--Doc/c-api/sequence.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/c-api/sequence.rst b/Doc/c-api/sequence.rst
index 0297ba3..cf1e142 100644
--- a/Doc/c-api/sequence.rst
+++ b/Doc/c-api/sequence.rst
@@ -123,10 +123,10 @@ Sequence Protocol
.. c:function:: PyObject* PySequence_Fast(PyObject *o, const char *m)
- Returns the sequence *o* as a tuple, unless it is already a tuple or list, in
- which case *o* is returned. Use :c:func:`PySequence_Fast_GET_ITEM` to access the
- members of the result. Returns *NULL* on failure. If the object is not a
- sequence, raises :exc:`TypeError` with *m* as the message text.
+ Return the sequence *o* as a list, unless it is already a tuple or list, in
+ which case *o* is returned. Use :c:func:`PySequence_Fast_GET_ITEM` to access
+ the members of the result. Returns *NULL* on failure. If the object is not
+ a sequence, raises :exc:`TypeError` with *m* as the message text.
.. c:function:: PyObject* PySequence_Fast_GET_ITEM(PyObject *o, Py_ssize_t i)