Coverage Report

Created: 2025-07-11 06:53

/src/cpython3/Include/cpython/classobject.h
Line
Count
Source (jump to first uncovered line)
1
/* Former class object interface -- now only bound methods are here  */
2
3
/* Revealing some structures (not for general use) */
4
5
#ifndef Py_LIMITED_API
6
#ifndef Py_CLASSOBJECT_H
7
#define Py_CLASSOBJECT_H
8
#ifdef __cplusplus
9
extern "C" {
10
#endif
11
12
typedef struct {
13
    PyObject_HEAD
14
    PyObject *im_func;   /* The callable object implementing the method */
15
    PyObject *im_self;   /* The instance it is bound to */
16
    PyObject *im_weakreflist; /* List of weak references */
17
    vectorcallfunc vectorcall;
18
} PyMethodObject;
19
20
PyAPI_DATA(PyTypeObject) PyMethod_Type;
21
22
1.67k
#define PyMethod_Check(op) Py_IS_TYPE((op), &PyMethod_Type)
23
24
PyAPI_FUNC(PyObject *) PyMethod_New(PyObject *, PyObject *);
25
26
PyAPI_FUNC(PyObject *) PyMethod_Function(PyObject *);
27
PyAPI_FUNC(PyObject *) PyMethod_Self(PyObject *);
28
29
#define _PyMethod_CAST(meth) \
30
60.2k
    (assert(PyMethod_Check(meth)), _Py_CAST(PyMethodObject*, meth))
31
32
/* Static inline functions for direct access to these values.
33
   Type checks are *not* done, so use with care. */
34
30.1k
static inline PyObject* PyMethod_GET_FUNCTION(PyObject *meth) {
35
30.1k
    return _PyMethod_CAST(meth)->im_func;
36
30.1k
}
Unexecuted instantiation: exceptions.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: genericaliasobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: listobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: longobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: dictobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: moduleobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: object.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: obmalloc.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: picklebufobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: rangeobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: setobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: sliceobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: structseq.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: templateobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: tupleobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: typeobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: typevarobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: unicodeobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: unicodectype.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: unionobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: weakrefobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: _warnings.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: bltinmodule.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: ceval.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: codecs.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: codegen.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: compile.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: context.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: errors.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: flowgraph.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: frame.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: future.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: gc.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: gc_gil.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: getargs.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: ceval_gil.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: hamt.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: hashtable.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: import.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: importdl.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: initconfig.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: instrumentation.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: instruction_sequence.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: intrinsics.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: legacy_tracing.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: lock.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: marshal.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: modsupport.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: mysnprintf.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: parking_lot.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: preconfig.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: pyarena.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: pyctype.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: pyhash.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: pylifecycle.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: pystate.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: pythonrun.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: pytime.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: qsbr.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: bootstrap_hash.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: specialize.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: symtable.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: sysmodule.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: thread.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: traceback.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: tracemalloc.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: getopt.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: pystrcmp.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: pystrtod.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: dtoa.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: formatter_unicode.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: fileutils.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: suggestions.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: perf_trampoline.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: perf_jit_trampoline.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: remote_debugging.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: dynload_shlib.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: config.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: gcmodule.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: atexitmodule.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: faulthandler.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: posixmodule.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: signalmodule.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: _tracemalloc.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: _suggestions.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: _codecsmodule.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: _collectionsmodule.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: _iomodule.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: iobase.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: fileio.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: bytesio.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: bufferedio.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: textio.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: stringio.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: itertoolsmodule.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: sre.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: _sysconfig.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: _threadmodule.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: timemodule.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: _typesmodule.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: _typingmodule.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: _weakref.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: _abc.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: _functoolsmodule.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: _localemodule.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: _opcode.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: _operator.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: symtablemodule.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: getpath.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: frozen.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: getbuildinfo.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: peg_api.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: file_tokenizer.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: helpers.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: myreadline.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: abstract.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: boolobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: bytes_methods.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: bytearrayobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: bytesobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: call.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: capsule.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: cellobject.c:PyMethod_GET_FUNCTION
classobject.c:PyMethod_GET_FUNCTION
Line
Count
Source
34
30.1k
static inline PyObject* PyMethod_GET_FUNCTION(PyObject *meth) {
35
30.1k
    return _PyMethod_CAST(meth)->im_func;
36
30.1k
}
Unexecuted instantiation: codeobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: complexobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: descrobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: enumobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: genobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: fileobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: floatobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: frameobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: funcobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: interpolationobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: iterobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: odictobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: memoryobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: methodobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: namespaceobject.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: _contextvars.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: Python-ast.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: Python-tokenize.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: asdl.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: assemble.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: ast.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: ast_preprocess.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: ast_unparse.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: critical_section.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: crossinterp.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: getcopyright.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: getplatform.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: getversion.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: optimizer.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: pathconfig.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: pymath.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: structmember.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: pystrhex.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: pegen.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: pegen_errors.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: parser.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: buffer.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: lexer.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: state.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: readline_tokenizer.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: string_tokenizer.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: utf8_tokenizer.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: getcompiler.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: mystrtoul.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: token.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: action_helpers.c:PyMethod_GET_FUNCTION
Unexecuted instantiation: string_parser.c:PyMethod_GET_FUNCTION
37
30.1k
#define PyMethod_GET_FUNCTION(meth) PyMethod_GET_FUNCTION(_PyObject_CAST(meth))
38
39
30.1k
static inline PyObject* PyMethod_GET_SELF(PyObject *meth) {
40
30.1k
    return _PyMethod_CAST(meth)->im_self;
41
30.1k
}
Unexecuted instantiation: exceptions.c:PyMethod_GET_SELF
Unexecuted instantiation: genericaliasobject.c:PyMethod_GET_SELF
Unexecuted instantiation: listobject.c:PyMethod_GET_SELF
Unexecuted instantiation: longobject.c:PyMethod_GET_SELF
Unexecuted instantiation: dictobject.c:PyMethod_GET_SELF
Unexecuted instantiation: moduleobject.c:PyMethod_GET_SELF
Unexecuted instantiation: object.c:PyMethod_GET_SELF
Unexecuted instantiation: obmalloc.c:PyMethod_GET_SELF
Unexecuted instantiation: picklebufobject.c:PyMethod_GET_SELF
Unexecuted instantiation: rangeobject.c:PyMethod_GET_SELF
Unexecuted instantiation: setobject.c:PyMethod_GET_SELF
Unexecuted instantiation: sliceobject.c:PyMethod_GET_SELF
Unexecuted instantiation: structseq.c:PyMethod_GET_SELF
Unexecuted instantiation: templateobject.c:PyMethod_GET_SELF
Unexecuted instantiation: tupleobject.c:PyMethod_GET_SELF
Unexecuted instantiation: typeobject.c:PyMethod_GET_SELF
Unexecuted instantiation: typevarobject.c:PyMethod_GET_SELF
Unexecuted instantiation: unicodeobject.c:PyMethod_GET_SELF
Unexecuted instantiation: unicodectype.c:PyMethod_GET_SELF
Unexecuted instantiation: unionobject.c:PyMethod_GET_SELF
Unexecuted instantiation: weakrefobject.c:PyMethod_GET_SELF
Unexecuted instantiation: _warnings.c:PyMethod_GET_SELF
Unexecuted instantiation: bltinmodule.c:PyMethod_GET_SELF
Unexecuted instantiation: ceval.c:PyMethod_GET_SELF
Unexecuted instantiation: codecs.c:PyMethod_GET_SELF
Unexecuted instantiation: codegen.c:PyMethod_GET_SELF
Unexecuted instantiation: compile.c:PyMethod_GET_SELF
Unexecuted instantiation: context.c:PyMethod_GET_SELF
Unexecuted instantiation: errors.c:PyMethod_GET_SELF
Unexecuted instantiation: flowgraph.c:PyMethod_GET_SELF
Unexecuted instantiation: frame.c:PyMethod_GET_SELF
Unexecuted instantiation: future.c:PyMethod_GET_SELF
Unexecuted instantiation: gc.c:PyMethod_GET_SELF
Unexecuted instantiation: gc_gil.c:PyMethod_GET_SELF
Unexecuted instantiation: getargs.c:PyMethod_GET_SELF
Unexecuted instantiation: ceval_gil.c:PyMethod_GET_SELF
Unexecuted instantiation: hamt.c:PyMethod_GET_SELF
Unexecuted instantiation: hashtable.c:PyMethod_GET_SELF
Unexecuted instantiation: import.c:PyMethod_GET_SELF
Unexecuted instantiation: importdl.c:PyMethod_GET_SELF
Unexecuted instantiation: initconfig.c:PyMethod_GET_SELF
Unexecuted instantiation: instrumentation.c:PyMethod_GET_SELF
Unexecuted instantiation: instruction_sequence.c:PyMethod_GET_SELF
Unexecuted instantiation: intrinsics.c:PyMethod_GET_SELF
Unexecuted instantiation: legacy_tracing.c:PyMethod_GET_SELF
Unexecuted instantiation: lock.c:PyMethod_GET_SELF
Unexecuted instantiation: marshal.c:PyMethod_GET_SELF
Unexecuted instantiation: modsupport.c:PyMethod_GET_SELF
Unexecuted instantiation: mysnprintf.c:PyMethod_GET_SELF
Unexecuted instantiation: parking_lot.c:PyMethod_GET_SELF
Unexecuted instantiation: preconfig.c:PyMethod_GET_SELF
Unexecuted instantiation: pyarena.c:PyMethod_GET_SELF
Unexecuted instantiation: pyctype.c:PyMethod_GET_SELF
Unexecuted instantiation: pyhash.c:PyMethod_GET_SELF
Unexecuted instantiation: pylifecycle.c:PyMethod_GET_SELF
Unexecuted instantiation: pystate.c:PyMethod_GET_SELF
Unexecuted instantiation: pythonrun.c:PyMethod_GET_SELF
Unexecuted instantiation: pytime.c:PyMethod_GET_SELF
Unexecuted instantiation: qsbr.c:PyMethod_GET_SELF
Unexecuted instantiation: bootstrap_hash.c:PyMethod_GET_SELF
Unexecuted instantiation: specialize.c:PyMethod_GET_SELF
Unexecuted instantiation: symtable.c:PyMethod_GET_SELF
Unexecuted instantiation: sysmodule.c:PyMethod_GET_SELF
Unexecuted instantiation: thread.c:PyMethod_GET_SELF
Unexecuted instantiation: traceback.c:PyMethod_GET_SELF
Unexecuted instantiation: tracemalloc.c:PyMethod_GET_SELF
Unexecuted instantiation: getopt.c:PyMethod_GET_SELF
Unexecuted instantiation: pystrcmp.c:PyMethod_GET_SELF
Unexecuted instantiation: pystrtod.c:PyMethod_GET_SELF
Unexecuted instantiation: dtoa.c:PyMethod_GET_SELF
Unexecuted instantiation: formatter_unicode.c:PyMethod_GET_SELF
Unexecuted instantiation: fileutils.c:PyMethod_GET_SELF
Unexecuted instantiation: suggestions.c:PyMethod_GET_SELF
Unexecuted instantiation: perf_trampoline.c:PyMethod_GET_SELF
Unexecuted instantiation: perf_jit_trampoline.c:PyMethod_GET_SELF
Unexecuted instantiation: remote_debugging.c:PyMethod_GET_SELF
Unexecuted instantiation: dynload_shlib.c:PyMethod_GET_SELF
Unexecuted instantiation: config.c:PyMethod_GET_SELF
Unexecuted instantiation: gcmodule.c:PyMethod_GET_SELF
Unexecuted instantiation: atexitmodule.c:PyMethod_GET_SELF
Unexecuted instantiation: faulthandler.c:PyMethod_GET_SELF
Unexecuted instantiation: posixmodule.c:PyMethod_GET_SELF
Unexecuted instantiation: signalmodule.c:PyMethod_GET_SELF
Unexecuted instantiation: _tracemalloc.c:PyMethod_GET_SELF
Unexecuted instantiation: _suggestions.c:PyMethod_GET_SELF
Unexecuted instantiation: _codecsmodule.c:PyMethod_GET_SELF
Unexecuted instantiation: _collectionsmodule.c:PyMethod_GET_SELF
Unexecuted instantiation: _iomodule.c:PyMethod_GET_SELF
Unexecuted instantiation: iobase.c:PyMethod_GET_SELF
Unexecuted instantiation: fileio.c:PyMethod_GET_SELF
Unexecuted instantiation: bytesio.c:PyMethod_GET_SELF
Unexecuted instantiation: bufferedio.c:PyMethod_GET_SELF
Unexecuted instantiation: textio.c:PyMethod_GET_SELF
Unexecuted instantiation: stringio.c:PyMethod_GET_SELF
Unexecuted instantiation: itertoolsmodule.c:PyMethod_GET_SELF
Unexecuted instantiation: sre.c:PyMethod_GET_SELF
Unexecuted instantiation: _sysconfig.c:PyMethod_GET_SELF
Unexecuted instantiation: _threadmodule.c:PyMethod_GET_SELF
Unexecuted instantiation: timemodule.c:PyMethod_GET_SELF
Unexecuted instantiation: _typesmodule.c:PyMethod_GET_SELF
Unexecuted instantiation: _typingmodule.c:PyMethod_GET_SELF
Unexecuted instantiation: _weakref.c:PyMethod_GET_SELF
Unexecuted instantiation: _abc.c:PyMethod_GET_SELF
Unexecuted instantiation: _functoolsmodule.c:PyMethod_GET_SELF
Unexecuted instantiation: _localemodule.c:PyMethod_GET_SELF
Unexecuted instantiation: _opcode.c:PyMethod_GET_SELF
Unexecuted instantiation: _operator.c:PyMethod_GET_SELF
Unexecuted instantiation: symtablemodule.c:PyMethod_GET_SELF
Unexecuted instantiation: getpath.c:PyMethod_GET_SELF
Unexecuted instantiation: frozen.c:PyMethod_GET_SELF
Unexecuted instantiation: getbuildinfo.c:PyMethod_GET_SELF
Unexecuted instantiation: peg_api.c:PyMethod_GET_SELF
Unexecuted instantiation: file_tokenizer.c:PyMethod_GET_SELF
Unexecuted instantiation: helpers.c:PyMethod_GET_SELF
Unexecuted instantiation: myreadline.c:PyMethod_GET_SELF
Unexecuted instantiation: abstract.c:PyMethod_GET_SELF
Unexecuted instantiation: boolobject.c:PyMethod_GET_SELF
Unexecuted instantiation: bytes_methods.c:PyMethod_GET_SELF
Unexecuted instantiation: bytearrayobject.c:PyMethod_GET_SELF
Unexecuted instantiation: bytesobject.c:PyMethod_GET_SELF
Unexecuted instantiation: call.c:PyMethod_GET_SELF
Unexecuted instantiation: capsule.c:PyMethod_GET_SELF
Unexecuted instantiation: cellobject.c:PyMethod_GET_SELF
classobject.c:PyMethod_GET_SELF
Line
Count
Source
39
30.1k
static inline PyObject* PyMethod_GET_SELF(PyObject *meth) {
40
30.1k
    return _PyMethod_CAST(meth)->im_self;
41
30.1k
}
Unexecuted instantiation: codeobject.c:PyMethod_GET_SELF
Unexecuted instantiation: complexobject.c:PyMethod_GET_SELF
Unexecuted instantiation: descrobject.c:PyMethod_GET_SELF
Unexecuted instantiation: enumobject.c:PyMethod_GET_SELF
Unexecuted instantiation: genobject.c:PyMethod_GET_SELF
Unexecuted instantiation: fileobject.c:PyMethod_GET_SELF
Unexecuted instantiation: floatobject.c:PyMethod_GET_SELF
Unexecuted instantiation: frameobject.c:PyMethod_GET_SELF
Unexecuted instantiation: funcobject.c:PyMethod_GET_SELF
Unexecuted instantiation: interpolationobject.c:PyMethod_GET_SELF
Unexecuted instantiation: iterobject.c:PyMethod_GET_SELF
Unexecuted instantiation: odictobject.c:PyMethod_GET_SELF
Unexecuted instantiation: memoryobject.c:PyMethod_GET_SELF
Unexecuted instantiation: methodobject.c:PyMethod_GET_SELF
Unexecuted instantiation: namespaceobject.c:PyMethod_GET_SELF
Unexecuted instantiation: _contextvars.c:PyMethod_GET_SELF
Unexecuted instantiation: Python-ast.c:PyMethod_GET_SELF
Unexecuted instantiation: Python-tokenize.c:PyMethod_GET_SELF
Unexecuted instantiation: asdl.c:PyMethod_GET_SELF
Unexecuted instantiation: assemble.c:PyMethod_GET_SELF
Unexecuted instantiation: ast.c:PyMethod_GET_SELF
Unexecuted instantiation: ast_preprocess.c:PyMethod_GET_SELF
Unexecuted instantiation: ast_unparse.c:PyMethod_GET_SELF
Unexecuted instantiation: critical_section.c:PyMethod_GET_SELF
Unexecuted instantiation: crossinterp.c:PyMethod_GET_SELF
Unexecuted instantiation: getcopyright.c:PyMethod_GET_SELF
Unexecuted instantiation: getplatform.c:PyMethod_GET_SELF
Unexecuted instantiation: getversion.c:PyMethod_GET_SELF
Unexecuted instantiation: optimizer.c:PyMethod_GET_SELF
Unexecuted instantiation: pathconfig.c:PyMethod_GET_SELF
Unexecuted instantiation: pymath.c:PyMethod_GET_SELF
Unexecuted instantiation: structmember.c:PyMethod_GET_SELF
Unexecuted instantiation: pystrhex.c:PyMethod_GET_SELF
Unexecuted instantiation: pegen.c:PyMethod_GET_SELF
Unexecuted instantiation: pegen_errors.c:PyMethod_GET_SELF
Unexecuted instantiation: parser.c:PyMethod_GET_SELF
Unexecuted instantiation: buffer.c:PyMethod_GET_SELF
Unexecuted instantiation: lexer.c:PyMethod_GET_SELF
Unexecuted instantiation: state.c:PyMethod_GET_SELF
Unexecuted instantiation: readline_tokenizer.c:PyMethod_GET_SELF
Unexecuted instantiation: string_tokenizer.c:PyMethod_GET_SELF
Unexecuted instantiation: utf8_tokenizer.c:PyMethod_GET_SELF
Unexecuted instantiation: getcompiler.c:PyMethod_GET_SELF
Unexecuted instantiation: mystrtoul.c:PyMethod_GET_SELF
Unexecuted instantiation: token.c:PyMethod_GET_SELF
Unexecuted instantiation: action_helpers.c:PyMethod_GET_SELF
Unexecuted instantiation: string_parser.c:PyMethod_GET_SELF
42
30.1k
#define PyMethod_GET_SELF(meth) PyMethod_GET_SELF(_PyObject_CAST(meth))
43
44
typedef struct {
45
    PyObject_HEAD
46
    PyObject *func;
47
} PyInstanceMethodObject;
48
49
PyAPI_DATA(PyTypeObject) PyInstanceMethod_Type;
50
51
0
#define PyInstanceMethod_Check(op) Py_IS_TYPE((op), &PyInstanceMethod_Type)
52
53
PyAPI_FUNC(PyObject *) PyInstanceMethod_New(PyObject *);
54
PyAPI_FUNC(PyObject *) PyInstanceMethod_Function(PyObject *);
55
56
#define _PyInstanceMethod_CAST(meth) \
57
0
    (assert(PyInstanceMethod_Check(meth)), \
58
0
     _Py_CAST(PyInstanceMethodObject*, meth))
59
60
/* Static inline function for direct access to these values.
61
   Type checks are *not* done, so use with care. */
62
0
static inline PyObject* PyInstanceMethod_GET_FUNCTION(PyObject *meth) {
63
0
    return _PyInstanceMethod_CAST(meth)->func;
64
0
}
Unexecuted instantiation: exceptions.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: genericaliasobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: listobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: longobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: dictobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: moduleobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: object.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: obmalloc.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: picklebufobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: rangeobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: setobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: sliceobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: structseq.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: templateobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: tupleobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: typeobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: typevarobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: unicodeobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: unicodectype.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: unionobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: weakrefobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: _warnings.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: bltinmodule.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: ceval.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: codecs.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: codegen.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: compile.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: context.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: errors.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: flowgraph.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: frame.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: future.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: gc.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: gc_gil.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: getargs.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: ceval_gil.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: hamt.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: hashtable.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: import.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: importdl.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: initconfig.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: instrumentation.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: instruction_sequence.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: intrinsics.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: legacy_tracing.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: lock.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: marshal.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: modsupport.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: mysnprintf.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: parking_lot.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: preconfig.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: pyarena.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: pyctype.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: pyhash.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: pylifecycle.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: pystate.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: pythonrun.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: pytime.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: qsbr.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: bootstrap_hash.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: specialize.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: symtable.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: sysmodule.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: thread.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: traceback.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: tracemalloc.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: getopt.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: pystrcmp.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: pystrtod.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: dtoa.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: formatter_unicode.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: fileutils.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: suggestions.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: perf_trampoline.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: perf_jit_trampoline.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: remote_debugging.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: dynload_shlib.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: config.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: gcmodule.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: atexitmodule.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: faulthandler.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: posixmodule.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: signalmodule.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: _tracemalloc.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: _suggestions.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: _codecsmodule.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: _collectionsmodule.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: _iomodule.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: iobase.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: fileio.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: bytesio.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: bufferedio.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: textio.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: stringio.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: itertoolsmodule.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: sre.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: _sysconfig.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: _threadmodule.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: timemodule.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: _typesmodule.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: _typingmodule.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: _weakref.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: _abc.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: _functoolsmodule.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: _localemodule.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: _opcode.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: _operator.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: symtablemodule.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: getpath.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: frozen.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: getbuildinfo.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: peg_api.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: file_tokenizer.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: helpers.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: myreadline.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: abstract.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: boolobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: bytes_methods.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: bytearrayobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: bytesobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: call.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: capsule.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: cellobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: classobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: codeobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: complexobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: descrobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: enumobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: genobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: fileobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: floatobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: frameobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: funcobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: interpolationobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: iterobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: odictobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: memoryobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: methodobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: namespaceobject.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: _contextvars.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: Python-ast.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: Python-tokenize.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: asdl.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: assemble.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: ast.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: ast_preprocess.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: ast_unparse.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: critical_section.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: crossinterp.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: getcopyright.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: getplatform.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: getversion.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: optimizer.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: pathconfig.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: pymath.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: structmember.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: pystrhex.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: pegen.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: pegen_errors.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: parser.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: buffer.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: lexer.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: state.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: readline_tokenizer.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: string_tokenizer.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: utf8_tokenizer.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: getcompiler.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: mystrtoul.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: token.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: action_helpers.c:PyInstanceMethod_GET_FUNCTION
Unexecuted instantiation: string_parser.c:PyInstanceMethod_GET_FUNCTION
65
0
#define PyInstanceMethod_GET_FUNCTION(meth) PyInstanceMethod_GET_FUNCTION(_PyObject_CAST(meth))
66
67
#ifdef __cplusplus
68
}
69
#endif
70
#endif   // !Py_CLASSOBJECT_H
71
#endif   // !Py_LIMITED_API