[docs] [issue37487] PyList_GetItem() document regarding index

杨昆仑 report at bugs.python.org
Tue Jul 2 10:49:41 EDT 2019


New submission from 杨昆仑 <yangkunlun at gmail.com>:

The document of this function (PyList_GetItem()) says: "Return the object at position index in the list pointed to by list. The position must be **positive**,". However test shows the correct position index should be from 0 to len(list)-1. The claim of index **must be positive** is inaccurate and confusing.

----------
assignee: docs at python
components: Documentation
messages: 347144
nosy: docs at python, 杨昆仑
priority: normal
severity: normal
status: open
title: PyList_GetItem() document regarding index
type: behavior
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37487>
_______________________________________


More information about the docs mailing list