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
f8709e80
Commit
f8709e80
authored
Jul 06, 2019
by
Terry Jan Reedy
Committed by
GitHub
Jul 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-37487: Fix PyList_GetItem index description. (GH-14623)
0 is a legal index.
parent
fcf1d003
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
Doc/c-api/list.rst
Doc/c-api/list.rst
+3
-3
Misc/NEWS.d/next/Documentation/2019-07-06-17-19-26.bpo-37487.QagfZ5.rst
...xt/Documentation/2019-07-06-17-19-26.bpo-37487.QagfZ5.rst
+1
-0
No files found.
Doc/c-api/list.rst
View file @
f8709e80
...
...
@@ -59,9 +59,9 @@ List Objects
.. c:function:: PyObject* PyList_GetItem(PyObject *list, Py_ssize_t index)
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 *index* is out of bounds
, return *NULL* and set an
:exc:`IndexError` exception.
position must be
non-negative;
indexing from the end of the list is not
supported. If *index* is out of bounds
(<0 or >=len(list)),
return *NULL* and set an
:exc:`IndexError` exception.
.. c:function:: PyObject* PyList_GET_ITEM(PyObject *list, Py_ssize_t i)
...
...
Misc/NEWS.d/next/Documentation/2019-07-06-17-19-26.bpo-37487.QagfZ5.rst
0 → 100644
View file @
f8709e80
Fix PyList_GetItem index description to include 0.
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