Home
last modified time | relevance | path

Searched refs:CO_COROUTINE (Results 1 – 10 of 10) sorted by relevance

/external/python/cpython3/Include/
Dcode.h69 #define CO_COROUTINE 0x0080 macro
/external/python/cpython3/Lib/
Dbdb.py6 from inspect import CO_GENERATOR, CO_COROUTINE, CO_ASYNC_GENERATOR
10 GENERATOR_AND_COROUTINE_FLAGS = CO_GENERATOR | CO_COROUTINE | CO_ASYNC_GENERATOR
Dinspect.py185 object.__code__.co_flags & CO_COROUTINE)
/external/python/cpython3/Lib/test/
Dtest_coroutines.py514 self.assertTrue(bool(foo.__code__.co_flags & inspect.CO_COROUTINE))
516 self.assertTrue(bool(f.cr_code.co_flags & inspect.CO_COROUTINE))
523 self.assertFalse(bool(bar.__code__.co_flags & inspect.CO_COROUTINE))
Dtest_grammar.py1460 self.assertTrue(bool(test.__code__.co_flags & inspect.CO_COROUTINE))
1471 self.assertTrue(bool(test2.__code__.co_flags & inspect.CO_COROUTINE))
Dtest_types.py1631 self.assertFalse(gen.__code__.co_flags & inspect.CO_COROUTINE)
1635 self.assertFalse(g.gi_code.co_flags & inspect.CO_COROUTINE)
/external/python/cpython3/Objects/
Dgenobject.c78 ((PyCodeObject *)gen->gi_code)->co_flags & CO_COROUTINE && in _PyGen_Finalize()
141 if (((PyCodeObject *)gen->gi_code)->co_flags & CO_COROUTINE) { in gen_dealloc()
/external/python/cpython3/Python/
Dceval.c2782 if (!(co->co_flags & (CO_COROUTINE | CO_ITERABLE_COROUTINE))) { in _PyEval_EvalFrameDefault()
3885 if (co->co_flags & (CO_GENERATOR | CO_COROUTINE | CO_ASYNC_GENERATOR)) { in _PyEval_EvalCodeWithName()
3888 int is_coro = co->co_flags & CO_COROUTINE; in _PyEval_EvalCodeWithName()
Dcompile.c5352 flags |= CO_COROUTINE; in compute_code_flags()
/external/python/cpython3/Doc/library/
Dinspect.rst1336 .. data:: CO_COROUTINE