Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /opt/alt/python310/include/python3.10/cpython/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python310/include/python3.10/cpython/listobject.h
#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))
Name
Size
Permissions
Options
abstract.h
13.725 KB
-rw-r--r--
bytearrayobject.h
0.751 KB
-rw-r--r--
bytesobject.h
4.251 KB
-rw-r--r--
ceval.h
1.434 KB
-rw-r--r--
code.h
7.393 KB
-rw-r--r--
compile.h
2.166 KB
-rw-r--r--
dictobject.h
3.646 KB
-rw-r--r--
fileobject.h
0.706 KB
-rw-r--r--
fileutils.h
4.167 KB
-rw-r--r--
frameobject.h
3.078 KB
-rw-r--r--
import.h
1.592 KB
-rw-r--r--
initconfig.h
7.419 KB
-rw-r--r--
interpreteridobject.h
0.378 KB
-rw-r--r--
listobject.h
1.214 KB
-rw-r--r--
methodobject.h
1.366 KB
-rw-r--r--
object.h
19.153 KB
-rw-r--r--
objimpl.h
3.277 KB
-rw-r--r--
odictobject.h
1.269 KB
-rw-r--r--
picklebufobject.h
0.826 KB
-rw-r--r--
pyctype.h
1.354 KB
-rw-r--r--
pydebug.h
1.067 KB
-rw-r--r--
pyerrors.h
5.348 KB
-rw-r--r--
pyfpe.h
0.434 KB
-rw-r--r--
pylifecycle.h
2.046 KB
-rw-r--r--
pymem.h
3.3 KB
-rw-r--r--
pystate.h
11.635 KB
-rw-r--r--
pythonrun.h
4.698 KB
-rw-r--r--
pytime.h
8.98 KB
-rw-r--r--
sysmodule.h
0.494 KB
-rw-r--r--
traceback.h
0.395 KB
-rw-r--r--
tupleobject.h
0.952 KB
-rw-r--r--
unicodeobject.h
44.056 KB
-rw-r--r--