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/methodobject.h
#ifndef Py_CPYTHON_METHODOBJECT_H
#  error "this header file must not be included directly"
#endif

// PyCFunctionObject structure

typedef struct {
    PyObject_HEAD
    PyMethodDef *m_ml; /* Description of the C function to call */
    PyObject    *m_self; /* Passed as 'self' arg to the C func, can be NULL */
    PyObject    *m_module; /* The __module__ attribute, can be anything */
    PyObject    *m_weakreflist; /* List of weak references */
    vectorcallfunc vectorcall;
} PyCFunctionObject;

#define _PyCFunctionObject_CAST(func) \
    (assert(PyCFunction_Check(func)), \
     _Py_CAST(PyCFunctionObject*, (func)))


// PyCMethodObject structure

typedef struct {
    PyCFunctionObject func;
    PyTypeObject *mm_class; /* Class that defines this method */
} PyCMethodObject;

#define _PyCMethodObject_CAST(func) \
    (assert(PyCMethod_Check(func)), \
     _Py_CAST(PyCMethodObject*, (func)))

PyAPI_DATA(PyTypeObject) PyCMethod_Type;

#define PyCMethod_CheckExact(op) Py_IS_TYPE((op), &PyCMethod_Type)
#define PyCMethod_Check(op) PyObject_TypeCheck((op), &PyCMethod_Type)


/* Static inline functions for direct access to these values.
   Type checks are *not* done, so use with care. */
static inline PyCFunction PyCFunction_GET_FUNCTION(PyObject *func) {
    return _PyCFunctionObject_CAST(func)->m_ml->ml_meth;
}
#define PyCFunction_GET_FUNCTION(func) PyCFunction_GET_FUNCTION(_PyObject_CAST(func))

static inline PyObject* PyCFunction_GET_SELF(PyObject *func_obj) {
    PyCFunctionObject *func = _PyCFunctionObject_CAST(func_obj);
    if (func->m_ml->ml_flags & METH_STATIC) {
        return _Py_NULL;
    }
    return func->m_self;
}
#define PyCFunction_GET_SELF(func) PyCFunction_GET_SELF(_PyObject_CAST(func))

static inline int PyCFunction_GET_FLAGS(PyObject *func) {
    return _PyCFunctionObject_CAST(func)->m_ml->ml_flags;
}
#define PyCFunction_GET_FLAGS(func) PyCFunction_GET_FLAGS(_PyObject_CAST(func))

static inline PyTypeObject* PyCFunction_GET_CLASS(PyObject *func_obj) {
    PyCFunctionObject *func = _PyCFunctionObject_CAST(func_obj);
    if (func->m_ml->ml_flags & METH_METHOD) {
        return _PyCMethodObject_CAST(func)->mm_class;
    }
    return _Py_NULL;
}
#define PyCFunction_GET_CLASS(func) PyCFunction_GET_CLASS(_PyObject_CAST(func))
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--