Kaydet (Commit) 7a1e1786 authored tarafından Zackery Spytz's avatar Zackery Spytz Kaydeden (comit) Mariatta

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".
üst b3caf388
...@@ -17,9 +17,8 @@ Sequence Protocol ...@@ -17,9 +17,8 @@ Sequence Protocol
.. index:: builtin: len .. index:: builtin: len
Returns the number of objects in sequence *o* on success, and ``-1`` on failure. Returns the number of objects in sequence *o* on success, and ``-1`` on
For objects that do not provide sequence protocol, this is equivalent to the failure. This is equivalent to the Python expression ``len(o)``.
Python expression ``len(o)``.
.. c:function:: PyObject* PySequence_Concat(PyObject *o1, PyObject *o2) .. c:function:: PyObject* PySequence_Concat(PyObject *o1, PyObject *o2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment