summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-09-30 18:07:05 (GMT)
committerGitHub <noreply@github.com>2018-09-30 18:07:05 (GMT)
commit2a2940e5c3e6d92f4fac5e9d361a1e224bb2f12e (patch)
treef703ecf4a37603fcc39e4d30bbec30c0f262e3f0 /Misc
parentd5bd036138881bb90a803397d992870a46fbdc2d (diff)
downloadcpython-2a2940e5c3e6d92f4fac5e9d361a1e224bb2f12e.zip
cpython-2a2940e5c3e6d92f4fac5e9d361a1e224bb2f12e.tar.gz
cpython-2a2940e5c3e6d92f4fac5e9d361a1e224bb2f12e.tar.bz2
bpo-34854: Fix compiling string annotations containing lambdas. (GH-9645)
* Compiling a string annotation containing a lambda with keyword-only argument without default value caused a crash. * Remove the final "*" (it is incorrect syntax) in the representation of lambda without *args and keyword-only arguments when compile from AST. * Improve the representation of lambda without arguments.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2018-09-30-19-27-13.bpo-34854.6TKTcB.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2018-09-30-19-27-13.bpo-34854.6TKTcB.rst b/Misc/NEWS.d/next/Core and Builtins/2018-09-30-19-27-13.bpo-34854.6TKTcB.rst
new file mode 100644
index 0000000..4e04e1f
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2018-09-30-19-27-13.bpo-34854.6TKTcB.rst
@@ -0,0 +1,2 @@
+Fixed a crash in compiling string annotations containing a lambda with a
+keyword-only argument that doesn't have a default value.