summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-04-08 14:49:09 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-04-08 14:49:09 (GMT)
commit2deef0cf31504041bad3182e8dcf9145318c27a4 (patch)
treef2cdfc04a2010796ccb7929d29e9ecfb8eef1387 /Doc
parentbc91330efb96fc66dc02f2b75f1dc6ad2f6523e3 (diff)
parentce0700ae7a192a142559db7653b0a59004ec6071 (diff)
downloadcpython-2deef0cf31504041bad3182e8dcf9145318c27a4.zip
cpython-2deef0cf31504041bad3182e8dcf9145318c27a4.tar.gz
cpython-2deef0cf31504041bad3182e8dcf9145318c27a4.tar.bz2
merge 3.4 (#16395)
Diffstat (limited to 'Doc')
-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)