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/python312/include/python3.12/cpython/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python312/include/python3.12/cpython/tupleobject.h
#ifndef Py_CPYTHON_TUPLEOBJECT_H
#  error "this header file must not be included directly"
#endif

typedef struct {
    PyObject_VAR_HEAD
    /* ob_item contains space for 'ob_size' elements.
       Items must normally not be NULL, except during construction when
       the tuple is not yet visible outside the function that builds it. */
    PyObject *ob_item[1];
} PyTupleObject;

PyAPI_FUNC(int) _PyTuple_Resize(PyObject **, Py_ssize_t);
PyAPI_FUNC(void) _PyTuple_MaybeUntrack(PyObject *);

/* Cast argument to PyTupleObject* type. */
#define _PyTuple_CAST(op) \
    (assert(PyTuple_Check(op)), _Py_CAST(PyTupleObject*, (op)))

// Macros and static inline functions, trading safety for speed

static inline Py_ssize_t PyTuple_GET_SIZE(PyObject *op) {
    PyTupleObject *tuple = _PyTuple_CAST(op);
    return Py_SIZE(tuple);
}
#define PyTuple_GET_SIZE(op) PyTuple_GET_SIZE(_PyObject_CAST(op))

#define PyTuple_GET_ITEM(op, index) (_PyTuple_CAST(op)->ob_item[(index)])

/* Function *only* to be used to fill in brand new tuples */
static inline void
PyTuple_SET_ITEM(PyObject *op, Py_ssize_t index, PyObject *value) {
    PyTupleObject *tuple = _PyTuple_CAST(op);
    tuple->ob_item[index] = value;
}
#define PyTuple_SET_ITEM(op, index, value) \
    PyTuple_SET_ITEM(_PyObject_CAST(op), (index), _PyObject_CAST(value))

PyAPI_FUNC(void) _PyTuple_DebugMallocStats(FILE *out);
Name
Size
Permissions
Options
abstract.h
7.686 KB
-rw-r--r--
bytearrayobject.h
1.136 KB
-rw-r--r--
bytesobject.h
4.551 KB
-rw-r--r--
cellobject.h
1.051 KB
-rw-r--r--
ceval.h
1.611 KB
-rw-r--r--
classobject.h
2.192 KB
-rw-r--r--
code.h
15.809 KB
-rw-r--r--
compile.h
2.598 KB
-rw-r--r--
complexobject.h
1.219 KB
-rw-r--r--
context.h
1.919 KB
-rw-r--r--
descrobject.h
1.604 KB
-rw-r--r--
dictobject.h
4.576 KB
-rw-r--r--
fileobject.h
0.799 KB
-rw-r--r--
fileutils.h
0.227 KB
-rw-r--r--
floatobject.h
0.879 KB
-rw-r--r--
frameobject.h
1.082 KB
-rw-r--r--
funcobject.h
7.02 KB
-rw-r--r--
genobject.h
3.238 KB
-rw-r--r--
import.h
1.585 KB
-rw-r--r--
initconfig.h
7.637 KB
-rw-r--r--
interpreteridobject.h
0.378 KB
-rw-r--r--
listobject.h
1.595 KB
-rw-r--r--
longintrepr.h
4.774 KB
-rw-r--r--
longobject.h
4.569 KB
-rw-r--r--
memoryobject.h
2.219 KB
-rw-r--r--
methodobject.h
2.223 KB
-rw-r--r--
modsupport.h
4.234 KB
-rw-r--r--
object.h
20.715 KB
-rw-r--r--
objimpl.h
3.238 KB
-rw-r--r--
odictobject.h
1.28 KB
-rw-r--r--
picklebufobject.h
0.828 KB
-rw-r--r--
pthread_stubs.h
3.423 KB
-rw-r--r--
pyctype.h
1.354 KB
-rw-r--r--
pydebug.h
1.38 KB
-rw-r--r--
pyerrors.h
4.176 KB
-rw-r--r--
pyfpe.h
0.434 KB
-rw-r--r--
pyframe.h
1.444 KB
-rw-r--r--
pylifecycle.h
3.343 KB
-rw-r--r--
pymem.h
3.3 KB
-rw-r--r--
pystate.h
16.824 KB
-rw-r--r--
pythonrun.h
4.788 KB
-rw-r--r--
pythread.h
1.385 KB
-rw-r--r--
pytime.h
12.111 KB
-rw-r--r--
setobject.h
2.096 KB
-rw-r--r--
sysmodule.h
0.478 KB
-rw-r--r--
traceback.h
0.434 KB
-rw-r--r--
tupleobject.h
1.345 KB
-rw-r--r--
unicodeobject.h
34.469 KB
-rw-r--r--
warnings.h
0.551 KB
-rw-r--r--
weakrefobject.h
1.984 KB
-rw-r--r--