Searched refs:CO_COROUTINE (Results 1 – 15 of 15) sorted by relevance
82 #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
313 return _has_code_flag(obj, CO_COROUTINE)
251 ("co_flags", code.co_flags | inspect.CO_COROUTINE),
24 from inspect import CO_COROUTINE392 self.assertNotEqual(co.co_flags & CO_COROUTINE, CO_COROUTINE,438 self.assertEqual(co.co_flags & CO_COROUTINE, CO_COROUTINE,
515 self.assertTrue(bool(foo.__code__.co_flags & inspect.CO_COROUTINE))517 self.assertTrue(bool(f.cr_code.co_flags & inspect.CO_COROUTINE))524 self.assertFalse(bool(bar.__code__.co_flags & inspect.CO_COROUTINE))
1942 self.assertTrue(bool(test.__code__.co_flags & inspect.CO_COROUTINE))1953 self.assertTrue(bool(test2.__code__.co_flags & inspect.CO_COROUTINE))
2042 self.assertFalse(gen.__code__.co_flags & inspect.CO_COROUTINE)2046 self.assertFalse(g.gi_code.co_flags & inspect.CO_COROUTINE)
81 ((PyCodeObject *)gen->gi_code)->co_flags & CO_COROUTINE && in _PyGen_Finalize()129 if (((PyCodeObject *)gen->gi_code)->co_flags & CO_COROUTINE) { in gen_dealloc()
3974 if (!(co->co_flags & (CO_COROUTINE | CO_ITERABLE_COROUTINE))) { in _PyEval_EvalFrameDefault()5025 …assert (((PyCodeObject *)con->fc_code)->co_flags & (CO_GENERATOR | CO_COROUTINE | CO_ASYNC_GENERAT… in make_coro()5027 int is_coro = ((PyCodeObject *)con->fc_code)->co_flags & CO_COROUTINE; in make_coro()5062 …if (((PyCodeObject *)con->fc_code)->co_flags & (CO_GENERATOR | CO_COROUTINE | CO_ASYNC_GENERATOR))… in _PyEval_Vector()
6816 flags |= CO_COROUTINE; in compute_code_flags()6831 flags |= CO_COROUTINE; in compute_code_flags()7009 if (flags & (CO_GENERATOR | CO_COROUTINE | CO_ASYNC_GENERATOR)) { in insert_generator_prefix()7010 if (flags & CO_COROUTINE) { in insert_generator_prefix()
2187 code_mock.co_flags = inspect.CO_COROUTINE
1457 .. data:: CO_COROUTINE
481 with CO_COROUTINE. Now only list comprehension making use of async/await
692 marked with the ``CO_COROUTINE`` flag may then be returned.