Searched refs:CO_GENERATOR (Results 1 – 8 of 8) sorted by relevance
72 #define CO_GENERATOR 0x0020 macro
6 from inspect import CO_GENERATOR, CO_COROUTINE, CO_ASYNC_GENERATOR10 GENERATOR_AND_COROUTINE_FLAGS = CO_GENERATOR | CO_COROUTINE | CO_ASYNC_GENERATOR
306 return _has_code_flag(obj, CO_GENERATOR)
38 use CO_GENERATOR flag; sys.set_coroutine_wrapper works only for 'async def'
516 self.assertFalse(bool(foo.__code__.co_flags & inspect.CO_GENERATOR))518 self.assertFalse(bool(f.cr_code.co_flags & inspect.CO_GENERATOR))
5025 …assert (((PyCodeObject *)con->fc_code)->co_flags & (CO_GENERATOR | CO_COROUTINE | CO_ASYNC_GENERAT… in make_coro()5062 …if (((PyCodeObject *)con->fc_code)->co_flags & (CO_GENERATOR | CO_COROUTINE | CO_ASYNC_GENERATOR))… in _PyEval_Vector()
6814 flags |= CO_GENERATOR; in compute_code_flags()7009 if (flags & (CO_GENERATOR | CO_COROUTINE | CO_ASYNC_GENERATOR)) { in insert_generator_prefix()
1448 .. data:: CO_GENERATOR