Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f7f5a82b
Commit
f7f5a82b
authored
Dec 01, 2010
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#10594: fix parameter names in PyList API docs.
parent
063f2378
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Doc/c-api/list.rst
Doc/c-api/list.rst
+3
-3
No files found.
Doc/c-api/list.rst
View file @
f7f5a82b
...
...
@@ -37,7 +37,7 @@ List Objects
.. note::
If *len
gth
* is greater than zero, the returned list object's items are
If *len* is greater than zero, the returned list object's items are
set to ``NULL``. Thus you cannot use abstract API functions such as
:c:func:`PySequence_SetItem` or expose the object to Python code before
setting all items to a real object with :c:func:`PyList_SetItem`.
...
...
@@ -58,9 +58,9 @@ List Objects
.. c:function:: PyObject* PyList_GetItem(PyObject *list, Py_ssize_t index)
Return the object at position *
pos* in the list pointed to by *p
*. The
Return the object at position *
index* in the list pointed to by *list
*. The
position must be positive, indexing from the end of the list is not
supported. If *
pos
* is out of bounds, return *NULL* and set an
supported. If *
index
* is out of bounds, return *NULL* and set an
:exc:`IndexError` exception.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment