Searched refs:CO_COROUTINE (Results 1 – 10 of 10) sorted by relevance
69 #define CO_COROUTINE 0x0080 macro
6 from inspect import CO_GENERATOR, CO_COROUTINE, CO_ASYNC_GENERATOR10 GENERATOR_AND_COROUTINE_FLAGS = CO_GENERATOR | CO_COROUTINE | CO_ASYNC_GENERATOR
185 object.__code__.co_flags & CO_COROUTINE)
514 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))
1460 self.assertTrue(bool(test.__code__.co_flags & inspect.CO_COROUTINE))1471 self.assertTrue(bool(test2.__code__.co_flags & inspect.CO_COROUTINE))
1631 self.assertFalse(gen.__code__.co_flags & inspect.CO_COROUTINE)1635 self.assertFalse(g.gi_code.co_flags & inspect.CO_COROUTINE)
78 ((PyCodeObject *)gen->gi_code)->co_flags & CO_COROUTINE && in _PyGen_Finalize()141 if (((PyCodeObject *)gen->gi_code)->co_flags & CO_COROUTINE) { in gen_dealloc()
2782 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()
5352 flags |= CO_COROUTINE; in compute_code_flags()
1336 .. data:: CO_COROUTINE