diff options
author | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2023-05-06 03:54:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-06 03:54:08 (GMT) |
commit | f5088006ca8e9654fbc3de119462f0ab764e408b (patch) | |
tree | 607630e41342515bec641e56639dd65773b3bacf /Doc/c-api/list.rst | |
parent | 4cd95dce0b8d7bb8a16468ec8b5b3429555417f1 (diff) | |
download | cpython-f5088006ca8e9654fbc3de119462f0ab764e408b.zip cpython-f5088006ca8e9654fbc3de119462f0ab764e408b.tar.gz cpython-f5088006ca8e9654fbc3de119462f0ab764e408b.tar.bz2 |
GH-97950: Use new-style index directive ('builtin') (#104164)
* Uncomment builtin removal in pairindextypes
* Use new-style index directive ('builtin') - C API
* Use new-style index directive ('builtin') - Extending
* Use new-style index directive ('builtin') - Library
* Use new-style index directive ('builtin') - Reference
* Use new-style index directive ('builtin') - Tutorial
Diffstat (limited to 'Doc/c-api/list.rst')
-rw-r--r-- | Doc/c-api/list.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/list.rst b/Doc/c-api/list.rst index 317421f..dbf3561 100644 --- a/Doc/c-api/list.rst +++ b/Doc/c-api/list.rst @@ -45,7 +45,7 @@ List Objects .. c:function:: Py_ssize_t PyList_Size(PyObject *list) - .. index:: builtin: len + .. index:: pair: built-in function; len Return the length of the list object in *list*; this is equivalent to ``len(list)`` on a list object. @@ -138,7 +138,7 @@ List Objects .. c:function:: PyObject* PyList_AsTuple(PyObject *list) - .. index:: builtin: tuple + .. index:: pair: built-in function; tuple Return a new tuple object containing the contents of *list*; equivalent to ``tuple(list)``. |