Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitecaa372

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 commit7a1e178)Co-authored-by: Zackery Spytz <zspytz@gmail.com>
1 parentb7c1a94 commitecaa372

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)

[8]ページ先頭

©2009-2025 Movatter.jp