Searched refs:CO_GENERATOR (Results 1 – 14 of 14) sorted by relevance
18 CO_GENERATOR = 0x0020 variable
13 CO_NESTED, CO_GENERATOR, CO_FUTURE_DIVISION,1422 self.graph.setFlag(CO_GENERATOR)1437 self.graph.setFlag(CO_GENERATOR)
38 #define CO_GENERATOR 0x0020 macro
59 #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
177 object.__code__.co_flags & CO_GENERATOR)
38 use CO_GENERATOR flag; sys.set_coroutine_wrapper works only for 'async def'
46 CO_NESTED, CO_GENERATOR, CO_NOFREE = 0x10, 0x20, 0x40 variable161 object.func_code.co_flags & CO_GENERATOR)
515 self.assertFalse(bool(foo.__code__.co_flags & inspect.CO_GENERATOR))517 self.assertFalse(bool(f.cr_code.co_flags & inspect.CO_GENERATOR))
1327 .. data:: CO_GENERATOR
3779 flags |= CO_GENERATOR; in compute_code_flags()
3592 if (co->co_flags & CO_GENERATOR) { in PyEval_EvalCodeEx()
3885 if (co->co_flags & (CO_GENERATOR | CO_COROUTINE | CO_ASYNC_GENERATOR)) { in _PyEval_EvalCodeWithName()
5350 flags |= CO_GENERATOR; in compute_code_flags()