/usr/include/python3.10/cpython
NameSizeModeActions
abstract.h140540644editdlrm
bytearrayobject.h7690644editdlrm
bytesobject.h43530644editdlrm
ceval.h14680644editdlrm
code.h75700644editdlrm
compile.h22180644editdlrm
dictobject.h37340644editdlrm
fileobject.h7230644editdlrm
fileutils.h42670644editdlrm
frameobject.h31520644editdlrm
import.h16300644editdlrm
initconfig.h75970644editdlrm
interpreteridobject.h3870644editdlrm
listobject.h12430644editdlrm
methodobject.h13990644editdlrm
object.h196130644editdlrm
objimpl.h33560644editdlrm
odictobject.h12990644editdlrm
picklebufobject.h8460644editdlrm
pyctype.h13870644editdlrm
pydebug.h10930644editdlrm
pyerrors.h54760644editdlrm
pyfpe.h4440644editdlrm
pylifecycle.h20950644editdlrm
pymem.h33790644editdlrm
pystate.h119140644editdlrm
pythonrun.h48110644editdlrm
pytime.h91960644editdlrm
sysmodule.h5060644editdlrm
traceback.h4040644editdlrm
tupleobject.h9750644editdlrm
unicodeobject.h451130644editdlrm
Edit: /usr/include/python3.10/cpython/listobject.h (1243B)
#ifndef Py_CPYTHON_LISTOBJECT_H # error "this header file must not be included directly" #endif typedef struct { PyObject_VAR_HEAD /* Vector of pointers to list elements. list[0] is ob_item[0], etc. */ PyObject **ob_item; /* ob_item contains space for 'allocated' elements. The number * currently in use is ob_size. * Invariants: * 0 <= ob_size <= allocated * len(list) == ob_size * ob_item == NULL implies ob_size == allocated == 0 * list.sort() temporarily sets allocated to -1 to detect mutations. * * Items must normally not be NULL, except during construction when * the list is not yet visible outside the function that builds it. */ Py_ssize_t allocated; } PyListObject; PyAPI_FUNC(PyObject *) _PyList_Extend(PyListObject *, PyObject *); PyAPI_FUNC(void) _PyList_DebugMallocStats(FILE *out); /* Macro, trading safety for speed */ /* Cast argument to PyListObject* type. */ #define _PyList_CAST(op) (assert(PyList_Check(op)), (PyListObject *)(op)) #define PyList_GET_ITEM(op, i) (_PyList_CAST(op)->ob_item[i]) #define PyList_SET_ITEM(op, i, v) ((void)(_PyList_CAST(op)->ob_item[i] = (v))) #define PyList_GET_SIZE(op) Py_SIZE(_PyList_CAST(op))