Searched refs:CO_COROUTINE (Results 1 - 13 of 13) sorted by relevance
/third_party/python/Include/cpython/ |
H A D | code.h | 113 /* The CO_COROUTINE flag is set for coroutine functions (defined with 115 #define CO_COROUTINE 0x0080 macro
|
/third_party/python/Lib/ |
H A D | bdb.py | 6 from inspect import CO_GENERATOR, CO_COROUTINE, CO_ASYNC_GENERATOR namespace 10 GENERATOR_AND_COROUTINE_FLAGS = CO_GENERATOR | CO_COROUTINE | CO_ASYNC_GENERATOR
|
H A D | inspect.py | 47 "CO_COROUTINE", 414 return _has_code_flag(obj, CO_COROUTINE)
|
/third_party/python/Objects/ |
H A D | genobject.c | 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() 922 (CO_GENERATOR | CO_COROUTINE | CO_ASYNC_GENERATOR); in _Py_MakeCoro() 939 assert (coro_flags == CO_COROUTINE); in _Py_MakeCoro()
|
H A D | frameobject.c | 296 if (code_obj->co_flags & (CO_GENERATOR | CO_COROUTINE | CO_ASYNC_GENERATOR)) in mark_stacks()
|
/third_party/python/Lib/test/ |
H A D | test_coroutines.py | 534 self.assertTrue(bool(foo.__code__.co_flags & inspect.CO_COROUTINE)) 536 self.assertTrue(bool(f.cr_code.co_flags & inspect.CO_COROUTINE)) 543 self.assertFalse(bool(bar.__code__.co_flags & inspect.CO_COROUTINE))
|
H A D | test_builtin.py | 24 from inspect import CO_COROUTINE namespace 391 self.assertNotEqual(co.co_flags & CO_COROUTINE, CO_COROUTINE, 403 set, and make sure the generated code object has the CO_COROUTINE flag 441 self.assertEqual(co.co_flags & CO_COROUTINE, CO_COROUTINE, 499 CO_COROUTINE flag.
|
H A D | test_code.py | 268 ("co_flags", code.co_flags | inspect.CO_COROUTINE),
|
H A D | test_grammar.py | 1948 self.assertTrue(bool(test.__code__.co_flags & inspect.CO_COROUTINE)) 1959 self.assertTrue(bool(test2.__code__.co_flags & inspect.CO_COROUTINE))
|
H A D | test_types.py | 2123 self.assertFalse(gen.__code__.co_flags & inspect.CO_COROUTINE) 2127 self.assertFalse(g.gi_code.co_flags & inspect.CO_COROUTINE)
|
/third_party/python/Python/ |
H A D | compile.c | 7878 flags |= CO_COROUTINE; in compute_code_flags() 7893 flags |= CO_COROUTINE; in compute_code_flags() 8184 if (flags & (CO_GENERATOR | CO_COROUTINE | CO_ASYNC_GENERATOR)) { in insert_prefix_instructions()
|
H A D | ceval.c | 4309 if (!(frame->f_code->co_flags & (CO_COROUTINE | CO_ITERABLE_COROUTINE))) {
|
/third_party/python/Lib/unittest/ |
H A D | mock.py | 2211 inspect.CO_COROUTINE
|
Completed in 46 milliseconds