From f4ee6e77c2450470d6a27c951b5d3960c54e18ca Mon Sep 17 00:00:00 2001 From: Zackery Spytz Date: Mon, 19 Feb 2018 19:42:18 -0700 Subject: [PATCH] bpo-32500: Correct the documentation for PySequence_Size() and PySequence_Length() --- Doc/c-api/sequence.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Doc/c-api/sequence.rst b/Doc/c-api/sequence.rst index f1825f079be474..81f8557ea6e665 100644 --- a/Doc/c-api/sequence.rst +++ b/Doc/c-api/sequence.rst @@ -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)