]> 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:19:55 +0000 (13:19 -0800)
committerGitHub <noreply@github.com>
Sun, 25 Feb 2018 21:19:55 +0000 (13:19 -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 f1825f079be47468be02f55afe60d1171fd08431..81f8557ea6e665d544ff33cb56f380d5831ee753 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)``.
 
 
 .. c:function:: PyObject* PySequence_Concat(PyObject *o1, PyObject *o2)