]> granicus.if.org Git - python/commitdiff
bpo-32500: Correct the documentation for PySequence_Size() and PySequence_Length...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 25 Feb 2018 21:22:43 +0000 (13:22 -0800)
committerGitHub <noreply@github.com>
Sun, 25 Feb 2018 21:22:43 +0000 (13:22 -0800)
Dropped the part that says: "For objects that do not provide sequence protocol".
(cherry picked from commit 7a1e1786f98ad49caa157dcdf14ada9d0b07d0fd)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Doc/c-api/sequence.rst

index d82a7b0556c0fc4fcaa98c31df412d183dac3889..d95ef2398cc5eb4b31ec88ae31b7189d20bf7445 100644 (file)
@@ -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)``.
 
    .. versionchanged:: 2.5
       These functions returned an :c:type:`int` type. This might require