]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.9] bpo-41218: Only mark async code with CO_COROUTINE. (GH-21357) (GH-21362)
authorPablo Galindo <Pablogsal@gmail.com>
Mon, 6 Jul 2020 22:30:20 +0000 (23:30 +0100)
committerGitHub <noreply@github.com>
Mon, 6 Jul 2020 22:30:20 +0000 (23:30 +0100)
commit6488a4a3c9790040059fc5d293e518f193daac8d
tree9770360402b3512a7ecff3e0028606c402ff275a
parent54f115dd533653c43b3c5541bf5936b22e484474
[3.9] bpo-41218: Only mark async code with CO_COROUTINE. (GH-21357) (GH-21362)

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.
(cherry picked from commit bd46174)

Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
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