Lines Matching refs:_testcapi
4 import _testcapi
6 _testcapi = None variable
185 self.obj = self.expected_self = _testcapi
316 self.obj = self.expected_self = _testcapi.MethInstance()
323 self.obj = self.expected_self = _testcapi.MethClass
330 self.obj = _testcapi.MethClass()
331 self.expected_self = _testcapi.MethClass
338 self.obj = _testcapi.MethStatic()
413 _instance = _testcapi.MethInstance()
415 (_testcapi, _testcapi), # module-level function
417 (_testcapi.MethClass, _testcapi.MethClass), # class method on class
418 (_testcapi.MethClass(), _testcapi.MethClass), # class method on inst.
419 (_testcapi.MethStatic, None), # static method
461 result = _testcapi.pyobject_fastcall(func, args)
466 result = _testcapi.pyobject_fastcall(func, None)
475 result = _testcapi.pyobject_fastcalldict(func, args, None)
480 result = _testcapi.pyobject_fastcalldict(func, None, None)
485 result = _testcapi.pyobject_fastcalldict(func, args, kwargs)
494 result = _testcapi.pyobject_vectorcall(func, args, None)
498 result = _testcapi.pyobject_vectorcall(func, args, ())
503 result = _testcapi.pyobject_vectorcall(func, None, None)
507 result = _testcapi.pyobject_vectorcall(func, None, ())
514 result = _testcapi.pyobject_vectorcall(func, args, kwnames)
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)
566 class MethodDescriptorHeap(_testcapi.MethodDescriptorBase):
571 self.assertTrue(_testcapi.MethodDescriptorBase.__flags__ & Py_TPFLAGS_HAVE_VECTORCALL)
572 self.assertTrue(_testcapi.MethodDescriptorDerived.__flags__ & Py_TPFLAGS_HAVE_VECTORCALL)
573 self.assertFalse(_testcapi.MethodDescriptorNopGet.__flags__ & Py_TPFLAGS_HAVE_VECTORCALL)
574 self.assertTrue(_testcapi.MethodDescriptor2.__flags__ & Py_TPFLAGS_HAVE_VECTORCALL)
577 class MethodDescriptorHeap(_testcapi.MethodDescriptorBase):
588 f = _testcapi.MethodDescriptorNopGet()
607 (_testcapi.MethodDescriptorBase(), (0,), {}, True),
608 (_testcapi.MethodDescriptorDerived(), (0,), {}, True),
609 (_testcapi.MethodDescriptor2(), (0,), {}, False)]
611 from _testcapi import pyobject_vectorcall, pyvectorcall_call
629 class MethodDescriptorHeap(_testcapi.MethodDescriptorBase):
632 class MethodDescriptorOverridden(_testcapi.MethodDescriptorBase):
640 class MethodDescriptorSuper(SuperBase, _testcapi.MethodDescriptorBase):