]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41218: Only mark async code with CO_COROUTINE. (#21357)
authorMatthias Bussonnier <bussonniermatthias@gmail.com>
Mon, 6 Jul 2020 21:26:52 +0000 (14:26 -0700)
committerGitHub <noreply@github.com>
Mon, 6 Jul 2020 21:26:52 +0000 (23:26 +0200)
commitbd46174a5a09a54e5ae1077909f923f56a7cf710
tree0b217ac0c8f01eb1789acc9d7ab23848ab7d0b5e
parenta103e73ce8d34e3af5f556ee9090ce89249d565e
bpo-41218: Only mark async code with CO_COROUTINE. (#21357)

3.8.3 had a regression where compiling with
ast.PyCF_ALLOW_TOP_LEVEL_AWAIT woudl agressively mark things are
coroutine even if there were not.
Lib/test/test_builtin.py
Misc/NEWS.d/next/Core and Builtins/2020-07-06-13-35-17.bpo-41218.oKnSr2.rst [new file with mode: 0644]
Python/compile.c