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/python311/include/python3.11/cpython/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python311/include/python3.11/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;
}
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
#  define PyCFunction_GET_FUNCTION(func) PyCFunction_GET_FUNCTION(_PyObject_CAST(func))
#endif

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;
}
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
#  define PyCFunction_GET_SELF(func) PyCFunction_GET_SELF(_PyObject_CAST(func))
#endif

static inline int PyCFunction_GET_FLAGS(PyObject *func) {
    return _PyCFunctionObject_CAST(func)->m_ml->ml_flags;
}
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
#  define PyCFunction_GET_FLAGS(func) PyCFunction_GET_FLAGS(_PyObject_CAST(func))
#endif

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;
}
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
#  define PyCFunction_GET_CLASS(func) PyCFunction_GET_CLASS(_PyObject_CAST(func))
#endif
Name
Size
Permissions
Options
abstract.h
8.036 KB
-rw-r--r--
bytearrayobject.h
1.274 KB
-rw-r--r--
bytesobject.h
4.689 KB
-rw-r--r--
cellobject.h
0.706 KB
-rw-r--r--
ceval.h
1.21 KB
-rw-r--r--
classobject.h
1.617 KB
-rw-r--r--
code.h
11.215 KB
-rw-r--r--
compile.h
2.166 KB
-rw-r--r--
complexobject.h
1.219 KB
-rw-r--r--
context.h
1.913 KB
-rw-r--r--
descrobject.h
1.604 KB
-rw-r--r--
dictobject.h
3.246 KB
-rw-r--r--
fileobject.h
0.799 KB
-rw-r--r--
fileutils.h
0.227 KB
-rw-r--r--
floatobject.h
0.686 KB
-rw-r--r--
frameobject.h
1.082 KB
-rw-r--r--
funcobject.h
4.32 KB
-rw-r--r--
genobject.h
3.202 KB
-rw-r--r--
import.h
1.49 KB
-rw-r--r--
initconfig.h
7.634 KB
-rw-r--r--
listobject.h
1.728 KB
-rw-r--r--
longintrepr.h
3.728 KB
-rw-r--r--
longobject.h
4.426 KB
-rw-r--r--
methodobject.h
2.496 KB
-rw-r--r--
modsupport.h
4.202 KB
-rw-r--r--
object.h
17.876 KB
-rw-r--r--
objimpl.h
2.928 KB
-rw-r--r--
odictobject.h
1.269 KB
-rw-r--r--
picklebufobject.h
0.826 KB
-rw-r--r--
pthread_stubs.h
3.423 KB
-rw-r--r--
pyctype.h
1.354 KB
-rw-r--r--
pydebug.h
1.048 KB
-rw-r--r--
pyerrors.h
4.416 KB
-rw-r--r--
pyfpe.h
0.434 KB
-rw-r--r--
pyframe.h
0.568 KB
-rw-r--r--
pylifecycle.h
2.05 KB
-rw-r--r--
pymem.h
3.3 KB
-rw-r--r--
pystate.h
14.015 KB
-rw-r--r--
pythonrun.h
4.698 KB
-rw-r--r--
pythread.h
1.393 KB
-rw-r--r--
pytime.h
11.873 KB
-rw-r--r--
setobject.h
1.95 KB
-rw-r--r--
sysmodule.h
0.478 KB
-rw-r--r--
traceback.h
0.434 KB
-rw-r--r--
tupleobject.h
1.478 KB
-rw-r--r--
unicodeobject.h
41.737 KB
-rw-r--r--
warnings.h
0.547 KB
-rw-r--r--
weakrefobject.h
2.054 KB
-rw-r--r--