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
195 return _has_code_flag(obj, CO_COROUTINE)
90 with CO_COROUTINE. Now only list comprehension making use of async/await
251 ("co_flags", code.co_flags | inspect.CO_COROUTINE),
23 from inspect import CO_COROUTINE391 self.assertNotEqual(co.co_flags & CO_COROUTINE, CO_COROUTINE,437 self.assertEqual(co.co_flags & CO_COROUTINE, CO_COROUTINE,
513 self.assertTrue(bool(foo.__code__.co_flags & inspect.CO_COROUTINE))515 self.assertTrue(bool(f.cr_code.co_flags & inspect.CO_COROUTINE))522 self.assertFalse(bool(bar.__code__.co_flags & inspect.CO_COROUTINE))
1840 self.assertTrue(bool(test.__code__.co_flags & inspect.CO_COROUTINE))1851 self.assertTrue(bool(test2.__code__.co_flags & inspect.CO_COROUTINE))
1660 self.assertFalse(gen.__code__.co_flags & inspect.CO_COROUTINE)1664 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()
3279 if (!(co->co_flags & (CO_COROUTINE | CO_ITERABLE_COROUTINE))) { in _PyEval_EvalFrameDefault()4301 if (co->co_flags & (CO_GENERATOR | CO_COROUTINE | CO_ASYNC_GENERATOR)) { in _PyEval_EvalCode()4303 int is_coro = co->co_flags & CO_COROUTINE; in _PyEval_EvalCode()
5845 flags |= CO_COROUTINE; in compute_code_flags()5860 flags |= CO_COROUTINE; in compute_code_flags()
2139 code_mock.co_flags = inspect.CO_COROUTINE
1376 .. data:: CO_COROUTINE
691 marked with the ``CO_COROUTINE`` flag may then be returned.