Home
last modified time | relevance | path

Searched refs:CO_COROUTINE (Results 1 - 13 of 13) sorted by relevance

/third_party/python/Include/cpython/
H A Dcode.h113 /* The CO_COROUTINE flag is set for coroutine functions (defined with
115 #define CO_COROUTINE 0x0080 macro
/third_party/python/Lib/
H A Dbdb.py6 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 Dinspect.py47 "CO_COROUTINE",
414 return _has_code_flag(obj, CO_COROUTINE)
/third_party/python/Objects/
H A Dgenobject.c90 ((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 Dframeobject.c296 if (code_obj->co_flags & (CO_GENERATOR | CO_COROUTINE | CO_ASYNC_GENERATOR)) in mark_stacks()
/third_party/python/Lib/test/
H A Dtest_coroutines.py534 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 Dtest_builtin.py24 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 Dtest_code.py268 ("co_flags", code.co_flags | inspect.CO_COROUTINE),
H A Dtest_grammar.py1948 self.assertTrue(bool(test.__code__.co_flags & inspect.CO_COROUTINE))
1959 self.assertTrue(bool(test2.__code__.co_flags & inspect.CO_COROUTINE))
H A Dtest_types.py2123 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 Dcompile.c7878 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 Dceval.c4309 if (!(frame->f_code->co_flags & (CO_COROUTINE | CO_ITERABLE_COROUTINE))) {
/third_party/python/Lib/unittest/
H A Dmock.py2211 inspect.CO_COROUTINE

Completed in 46 milliseconds