Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 406221c + 3279995 commit 09bb904Copy full SHA for 09bb904
1 file changed
Doc/c-api/sequence.rst
@@ -107,8 +107,9 @@ Sequence Protocol
107
108
.. c:function:: PyObject* PySequence_List(PyObject *o)
109
110
- Return a list object with the same contents as the arbitrary sequence *o*. The
111
- 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
112
+ equivalent to the Python expression ``list(o)``.
113
114
115
.. c:function:: PyObject* PySequence_Tuple(PyObject *o)
0 commit comments