Skip to content

Commit 2deef0c

Browse files
committed
merge 3.4 (#16395)
2 parents bc91330 + ce0700a commit 2deef0c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/c-api/sequence.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ Sequence Protocol
123123
124124
.. c:function:: PyObject* PySequence_Fast(PyObject *o, const char *m)
125125
126-
Returns the sequence *o* as a tuple, unless it is already a tuple or list, in
127-
which case *o* is returned. Use :c:func:`PySequence_Fast_GET_ITEM` to access the
128-
members of the result. Returns *NULL* on failure. If the object is not a
129-
sequence, raises :exc:`TypeError` with *m* as the message text.
126+
Return the sequence *o* as a list, unless it is already a tuple or list, in
127+
which case *o* is returned. Use :c:func:`PySequence_Fast_GET_ITEM` to access
128+
the members of the result. Returns *NULL* on failure. If the object is not
129+
a sequence, raises :exc:`TypeError` with *m* as the message text.
130130
131131
132132
.. c:function:: PyObject* PySequence_Fast_GET_ITEM(PyObject *o, Py_ssize_t i)

0 commit comments

Comments
 (0)