Home
last modified time | relevance | path

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

/external/python/cpython3/Include/cpython/
Dcode.h82 #define CO_COROUTINE 0x0080 macro
/external/python/cpython3/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.py195 return _has_code_flag(obj, CO_COROUTINE)
/external/python/cpython3/Misc/NEWS.d/
D3.9.0b5.rst90 with CO_COROUTINE. Now only list comprehension making use of async/await
/external/python/cpython3/Lib/test/
Dtest_code.py251 ("co_flags", code.co_flags | inspect.CO_COROUTINE),
Dtest_builtin.py23 from inspect import CO_COROUTINE
391 self.assertNotEqual(co.co_flags & CO_COROUTINE, CO_COROUTINE,
437 self.assertEqual(co.co_flags & CO_COROUTINE, CO_COROUTINE,
Dtest_coroutines.py513 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))
Dtest_grammar.py1840 self.assertTrue(bool(test.__code__.co_flags & inspect.CO_COROUTINE))
1851 self.assertTrue(bool(test2.__code__.co_flags & inspect.CO_COROUTINE))
Dtest_types.py1660 self.assertFalse(gen.__code__.co_flags & inspect.CO_COROUTINE)
1664 self.assertFalse(g.gi_code.co_flags & inspect.CO_COROUTINE)
/external/python/cpython3/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()
/external/python/cpython3/Python/
Dceval.c3279 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()
Dcompile.c5845 flags |= CO_COROUTINE; in compute_code_flags()
5860 flags |= CO_COROUTINE; in compute_code_flags()
/external/python/cpython3/Lib/unittest/
Dmock.py2139 code_mock.co_flags = inspect.CO_COROUTINE
/external/python/cpython3/Doc/library/
Dinspect.rst1376 .. data:: CO_COROUTINE
/external/python/cpython3/Doc/whatsnew/
D3.8.rst691 marked with the ``CO_COROUTINE`` flag may then be returned.