Home
last modified time | relevance | path

Searched refs:Py_TPFLAGS_METHOD_DESCRIPTOR (Results 1 – 12 of 12) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_call.py536 Py_TPFLAGS_METHOD_DESCRIPTOR = 1 << 17 variable
555 self.assertFalse(type(repr).__flags__ & Py_TPFLAGS_METHOD_DESCRIPTOR)
556 self.assertTrue(type(list.append).__flags__ & Py_TPFLAGS_METHOD_DESCRIPTOR)
557 self.assertTrue(type(list.__add__).__flags__ & Py_TPFLAGS_METHOD_DESCRIPTOR)
558 self.assertTrue(type(testfunction).__flags__ & Py_TPFLAGS_METHOD_DESCRIPTOR)
559 self.assertTrue(type(cached).__flags__ & Py_TPFLAGS_METHOD_DESCRIPTOR)
561 self.assertTrue(_testcapi.MethodDescriptorBase.__flags__ & Py_TPFLAGS_METHOD_DESCRIPTOR)
562 self.assertTrue(_testcapi.MethodDescriptorDerived.__flags__ & Py_TPFLAGS_METHOD_DESCRIPTOR)
563 self.assertFalse(_testcapi.MethodDescriptorNopGet.__flags__ & Py_TPFLAGS_METHOD_DESCRIPTOR)
568 self.assertFalse(MethodDescriptorHeap.__flags__ & Py_TPFLAGS_METHOD_DESCRIPTOR)
/external/python/cpython3/Include/
Dobject.h331 #define Py_TPFLAGS_METHOD_DESCRIPTOR (1UL << 17) macro
/external/python/cpython3/Objects/
Dfuncobject.c657 Py_TPFLAGS_METHOD_DESCRIPTOR, /* tp_flags */
Ddescrobject.c714 Py_TPFLAGS_METHOD_DESCRIPTOR, /* tp_flags */
864 Py_TPFLAGS_METHOD_DESCRIPTOR, /* tp_flags */
Dobject.c1108 if (_PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_METHOD_DESCRIPTOR)) { in _PyObject_GetMethod()
Dtypeobject.c1465 if (_PyType_HasFeature(Py_TYPE(res), Py_TPFLAGS_METHOD_DESCRIPTOR)) { in lookup_maybe_method()
5334 (base->tp_flags & Py_TPFLAGS_METHOD_DESCRIPTOR)) in inherit_slots()
5336 type->tp_flags |= Py_TPFLAGS_METHOD_DESCRIPTOR; in inherit_slots()
5387 if (type->tp_flags & Py_TPFLAGS_METHOD_DESCRIPTOR) { in PyType_Ready()
/external/python/cpython3/Doc/c-api/
Dcall.rst406 If the object has the :const:`Py_TPFLAGS_METHOD_DESCRIPTOR` feature,
Dtypeobj.rst1097 .. data:: Py_TPFLAGS_METHOD_DESCRIPTOR
/external/python/cpython3/Modules/
D_functoolsmodule.c1385 Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_METHOD_DESCRIPTOR,
D_testcapimodule.c6176 Py_TPFLAGS_METHOD_DESCRIPTOR | Py_TPFLAGS_HAVE_VECTORCALL,
/external/python/cpython3/Misc/NEWS.d/
D3.8.0b1.rst2039 Add new type flag ``Py_TPFLAGS_METHOD_DESCRIPTOR`` for objects behaving like
D3.9.0a1.rst964 Slot functions optimize any callable with ``Py_TPFLAGS_METHOD_DESCRIPTOR``