Searched refs:gi_code (Results 1 - 8 of 8) sorted by relevance
/third_party/python/Lib/asyncio/ |
H A D | coroutines.py | 79 elif hasattr(coro, 'gi_code') and coro.gi_code: 80 coro_code = coro.gi_code
|
/third_party/python/Lib/ |
H A D | types.py | 224 def gi_code(self): member in _GeneratorWrapper 225 return self.__wrapped.gi_code 235 cr_code = gi_code 283 coro.__class__ is GeneratorType and coro.gi_code.co_flags & 0x100):
|
H A D | dis.py | 86 elif hasattr(x, 'gi_code'): #...a generator object, or 87 x = x.gi_code 168 elif hasattr(x, 'gi_code'): #...a generator object, or 169 x = x.gi_code
|
H A D | inspect.py | 435 gi_code code object 453 bool(object.gi_code.co_flags & CO_ITERABLE_COROUTINE) or
|
/third_party/python/Objects/ |
H A D | genobject.c | 35 Py_VISIT(gen->gi_code); in gen_traverse() 89 if (gen->gi_code != NULL && in _PyGen_Finalize() 90 ((PyCodeObject *)gen->gi_code)->co_flags & CO_COROUTINE && in _PyGen_Finalize() 140 if (((PyCodeObject *)gen->gi_code)->co_flags & CO_COROUTINE) { in gen_dealloc() 143 Py_CLEAR(gen->gi_code); in gen_dealloc() 359 assert(_Py_OPCODE(_PyCode_CODE(gen->gi_code)[0]) != SEND); in _PyGen_yf() 805 {"gi_code", T_OBJECT, offsetof(PyGenObject, gi_code), READONLY|PY_AUDIT_READ}, 814 PyCodeObject *code = gen->gi_code; in gen_sizeof() 902 gen->gi_code in make_gen() [all...] |
/third_party/python/Lib/test/ |
H A D | test_types.py | 1944 for name in {'gi_running', 'gi_frame', 'gi_code', 'gi_yieldfrom', 1952 gen.gi_code = object() 1956 self.assertIs(wrapper.gi_code, gen.gi_code) 1960 self.assertIs(wrapper.cr_code, gen.gi_code) 2079 for name in ('__name__', '__qualname__', 'gi_code', 2083 self.assertIs(foo().cr_code, gen.gi_code) 2126 self.assertTrue(g.gi_code.co_flags & inspect.CO_ITERABLE_COROUTINE) 2127 self.assertFalse(g.gi_code.co_flags & inspect.CO_COROUTINE) 2143 'cr_frame', 'gi_code', 'gi_fram [all...] |
H A D | test_generators.py | 580 self.assertEqual(gen_b.gi_yieldfrom.gi_code.co_name, 'a') 956 ['close', 'gi_code', 'gi_frame', 'gi_running', 'gi_suspended', 'gi_yieldfrom', 'send', 'throw'] 1439 Test the gi_code attribute 1445 >>> g.gi_code is f.__code__ 1452 >>> g.gi_code is f.__code__
|
H A D | test_coroutines.py | 940 self.assertEqual(coro_b.cr_await.cr_await.gi_code.co_name, 'a')
|
Completed in 16 milliseconds