]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40334: Use old compiler when compile mode is func_type (GH-19692)
authorGuido van Rossum <guido@python.org>
Thu, 23 Apr 2020 22:42:56 +0000 (15:42 -0700)
committerGitHub <noreply@github.com>
Thu, 23 Apr 2020 22:42:56 +0000 (15:42 -0700)
commitbc28805570ae3e8835a5d502ae9ab15c52449f77
tree50fcd3677bde21955ccbf524b41e74fada76f58d
parent40ded947f82683f0ed08144599a83d3a1ce719eb
bpo-40334: Use old compiler when compile mode is func_type (GH-19692)

This is invoked by mypy, using ast.parse(source, "<func_type>", "func_type"). Since the new grammar doesn't yet support the func_type_input start symbol we must use the old compiler in this case to prevent a crash.

https://bugs.python.org/issue40334
Python/bltinmodule.c