Home
last modified time | relevance | path

Searched refs:CO_COROUTINE (Results 1 – 15 of 15) sorted by relevance

/third_party/python/Include/cpython/
Dcode.h82 #define CO_COROUTINE 0x0080 macro
/third_party/python/Lib/
Dbdb.py6 from inspect import CO_GENERATOR, CO_COROUTINE, CO_ASYNC_GENERATOR
10 GENERATOR_AND_COROUTINE_FLAGS = CO_GENERATOR | CO_COROUTINE | CO_ASYNC_GENERATOR
Dinspect.py313 return _has_code_flag(obj, CO_COROUTINE)
/third_party/python/Lib/test/
Dtest_code.py251 ("co_flags", code.co_flags | inspect.CO_COROUTINE),
Dtest_builtin.py24 from inspect import CO_COROUTINE
392 self.assertNotEqual(co.co_flags & CO_COROUTINE, CO_COROUTINE,
438 self.assertEqual(co.co_flags & CO_COROUTINE, CO_COROUTINE,
Dtest_coroutines.py515 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))
Dtest_grammar.py1942 self.assertTrue(bool(test.__code__.co_flags & inspect.CO_COROUTINE))
1953 self.assertTrue(bool(test2.__code__.co_flags & inspect.CO_COROUTINE))
Dtest_types.py2042 self.assertFalse(gen.__code__.co_flags & inspect.CO_COROUTINE)
2046 self.assertFalse(g.gi_code.co_flags & inspect.CO_COROUTINE)
/third_party/python/Objects/
Dgenobject.c81 ((PyCodeObject *)gen->gi_code)->co_flags & CO_COROUTINE && in _PyGen_Finalize()
129 if (((PyCodeObject *)gen->gi_code)->co_flags & CO_COROUTINE) { in gen_dealloc()
/third_party/python/Python/
Dceval.c3974 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()
Dcompile.c6816 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()
/third_party/python/Lib/unittest/
Dmock.py2187 code_mock.co_flags = inspect.CO_COROUTINE
/third_party/python/Doc/library/
Dinspect.rst1457 .. data:: CO_COROUTINE
/third_party/python/Misc/NEWS.d/
D3.10.0a1.rst481 with CO_COROUTINE. Now only list comprehension making use of async/await
/third_party/python/Doc/whatsnew/
D3.8.rst692 marked with the ``CO_COROUTINE`` flag may then be returned.