Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7a1e178

Browse files
ZackerySpytzMariatta
authored andcommitted
bpo-32500: Correct the documentation for PySequence_Size() and PySequence_Length() (pythonGH-5767)
Dropped the part that says: "For objects that do not provide sequence protocol".
1 parent b3caf38 commit 7a1e178

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Doc/c-api/sequence.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ Sequence Protocol
1717
1818
.. index:: builtin: len
1919
20-
Returns the number of objects in sequence *o* on success, and ``-1`` on failure.
21-
For objects that do not provide sequence protocol, this is equivalent to the
22-
Python expression ``len(o)``.
20+
Returns the number of objects in sequence *o* on success, and ``-1`` on
21+
failure. This is equivalent to the Python expression ``len(o)``.
2322
2423
2524
.. c:function:: PyObject* PySequence_Concat(PyObject *o1, PyObject *o2)

0 commit comments

Comments
 (0)