]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #23081: Document that PySequence_List also accepts iterables.
authorBerker Peksag <berker.peksag@gmail.com>
Fri, 13 Mar 2015 00:55:45 +0000 (02:55 +0200)
committerBerker Peksag <berker.peksag@gmail.com>
Fri, 13 Mar 2015 00:55:45 +0000 (02:55 +0200)
Patch by Lars Buitinck.

Doc/c-api/sequence.rst

index cf1e1420e0bba83a000e10154ed810b5c6b33794..5960db9d42f961c00de30f29a34222a03dca75cb 100644 (file)
@@ -107,8 +107,9 @@ Sequence Protocol
 
 .. c:function:: PyObject* PySequence_List(PyObject *o)
 
-   Return a list object with the same contents as the arbitrary sequence *o*.  The
-   returned list is guaranteed to be new.
+   Return a list object with the same contents as the sequence or iterable *o*,
+   or *NULL* on failure.  The returned list is guaranteed to be new.  This is
+   equivalent to the Python expression ``list(o)``.
 
 
 .. c:function:: PyObject* PySequence_Tuple(PyObject *o)