[Python-checkins] bpo-32500: Correct the documentation for PySequence_Size() and PySequence_Length() (GH-5767)
Mariatta
webhook-mailer at python.org
Tue Feb 20 12:24:33 EST 2018
https://github.com/python/cpython/commit/7a1e1786f98ad49caa157dcdf14ada9d0b07d0fd
commit: 7a1e1786f98ad49caa157dcdf14ada9d0b07d0fd
branch: master
author: Zackery Spytz <zspytz at gmail.com>
committer: Mariatta <Mariatta at users.noreply.github.com>
date: 2018-02-20T09:24:29-08:00
summary:
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".
files:
M Doc/c-api/sequence.rst
diff --git a/Doc/c-api/sequence.rst b/Doc/c-api/sequence.rst
index f1825f079be4..81f8557ea6e6 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)
More information about the Python-checkins
mailing list