diff options
author | Zackery Spytz <zspytz@gmail.com> | 2018-02-20 17:24:29 (GMT) |
---|---|---|
committer | Mariatta <Mariatta@users.noreply.github.com> | 2018-02-20 17:24:29 (GMT) |
commit | 7a1e1786f98ad49caa157dcdf14ada9d0b07d0fd (patch) | |
tree | 4c0e5fee456ac636c8f0a8eb46716a4880335ea3 /Doc/c-api | |
parent | b3caf388a0418f6c031e4dbdcc0c1ce7e5cc36bd (diff) | |
download | cpython-7a1e1786f98ad49caa157dcdf14ada9d0b07d0fd.zip cpython-7a1e1786f98ad49caa157dcdf14ada9d0b07d0fd.tar.gz cpython-7a1e1786f98ad49caa157dcdf14ada9d0b07d0fd.tar.bz2 |
bpo-32500: Correct the documentation for PySequence_Size() and PySequence_Length() (GH-5767)
Dropped the part that says: "For objects that do not provide sequence protocol".
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/sequence.rst | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/c-api/sequence.rst b/Doc/c-api/sequence.rst index f1825f0..81f8557 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) |