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

Skip to content

Commit ecaa372

Browse files
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". (cherry picked from commit 7a1e178) Co-authored-by: Zackery Spytz <[email protected]>
1 parent b7c1a94 commit ecaa372

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
.. versionchanged:: 2.5
2524
These functions returned an :c:type:`int` type. This might require

0 commit comments

Comments
 (0)