Skip to content

Commit

Permalink
bpo-32500: Correct the documentation for PySequence_Size() and PySequ…
Browse files Browse the repository at this point in the history
…ence_Length() (GH-5767)

Dropped the part that says: "For objects that do not provide sequence protocol".
(cherry picked from commit 7a1e178)

Co-authored-by: Zackery Spytz <[email protected]>
  • Loading branch information
miss-islington and ZackerySpytz authored Feb 20, 2018
1 parent 8e149ff commit 6ae87ca
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Doc/c-api/sequence.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ Sequence Protocol
.. index:: builtin: len
Returns the number of objects in sequence *o* on success, and ``-1`` on failure.
For objects that do not provide sequence protocol, this is equivalent to the
Python expression ``len(o)``.
Returns the number of objects in sequence *o* on success, and ``-1`` on
failure. This is equivalent to the Python expression ``len(o)``.
.. c:function:: PyObject* PySequence_Concat(PyObject *o1, PyObject *o2)
Expand Down

0 comments on commit 6ae87ca

Please sign in to comment.