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
188 return _has_code_flag(obj, CO_GENERATOR)
514 self.assertFalse(bool(foo.__code__.co_flags & inspect.CO_GENERATOR))516 self.assertFalse(bool(f.cr_code.co_flags & inspect.CO_GENERATOR))
1367 .. data:: CO_GENERATOR
4301 if (co->co_flags & (CO_GENERATOR | CO_COROUTINE | CO_ASYNC_GENERATOR)) { in _PyEval_EvalCode()
5843 flags |= CO_GENERATOR; in compute_code_flags()
23536 inspect.getcoroutinelocals; coroutines no longer use CO_GENERATOR flag;