Home
last modified time | relevance | path

Searched refs:m_self (Results 1 – 8 of 8) sorted by relevance

/external/python/cpython2/Objects/
Dmethodobject.c22 free_list = (PyCFunctionObject *)(op->m_self); in PyCFunction_NewEx()
33 op->m_self = self; in PyCFunction_NewEx()
57 return ((PyCFunctionObject *)op) -> m_self; in PyCFunction_GetSelf()
134 Py_XDECREF(m->m_self); in meth_dealloc()
137 m->m_self = (PyObject *)free_list; in meth_dealloc()
166 Py_VISIT(m->m_self); in meth_traverse()
180 self = m->m_self; in meth_get__self__()
204 if (m->m_self == NULL) in meth_repr()
209 m->m_self->ob_type->tp_name, in meth_repr()
210 m->m_self); in meth_repr()
[all …]
/external/python/cpython3/Objects/
Dmethodobject.c110 op->m_self = self; in PyCMethod_New()
170 Py_XDECREF(m->m_self); in meth_dealloc()
180 if (m->m_self == NULL || PyModule_Check(m->m_self)) in meth_reduce()
184 m->m_self, m->m_ml->ml_name); in meth_reduce()
224 if (m->m_self == NULL || PyModule_Check(m->m_self)) in meth_get__qualname__()
227 type = PyType_Check(m->m_self) ? m->m_self : (PyObject*)Py_TYPE(m->m_self); in meth_get__qualname__()
249 Py_VISIT(m->m_self); in meth_traverse()
285 if (m->m_self == NULL || PyModule_Check(m->m_self)) in meth_repr()
290 Py_TYPE(m->m_self)->tp_name, in meth_repr()
291 m->m_self); in meth_repr()
[all …]
/external/tensorflow/tensorflow/python/autograph/pyct/
Dinspect_utils.py300 m_self = getattr(m, '__self__', None)
301 if m_self is not None:
302 if inspect.isclass(m_self):
303 return m_self
304 return m_self.__class__
/external/python/cpython3/Include/cpython/
Dmethodobject.h16 NULL : ((PyCFunctionObject *)func) -> m_self)
26 PyObject *m_self; /* Passed as 'self' arg to the C func, can be NULL */ member
/external/python/cpython2/Include/
Dmethodobject.h32 (((PyCFunctionObject *)func) -> m_self)
84 PyObject *m_self; /* Passed as 'self' arg to the C func, can be NULL */ member
/external/python/cpython2/Modules/
D_lsprof.c178 if (fn->m_self == NULL) { in normalizeUserObj()
207 PyObject *self = fn->m_self; in normalizeUserObj()
/external/python/cpython3/Modules/
D_lsprof.c116 if (fn->m_self == NULL) { in normalizeUserObj()
147 PyObject *self = fn->m_self; in normalizeUserObj()
/external/python/pybind11/include/pybind11/
Dpybind11.h437 … auto rec_capsule = reinterpret_borrow<capsule>(((PyCFunctionObject *) m_ptr)->m_self); in PYBIND11_NAMESPACE_BEGIN()