]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Don't allow type comments on expression statements
authorGuido van Rossum <guido@python.org>
Mon, 28 Jan 2019 01:45:13 +0000 (17:45 -0800)
committerGuido van Rossum <guido@python.org>
Mon, 28 Jan 2019 16:35:45 +0000 (08:35 -0800)
commitcef9f31a99793e806e4ca2a764c52d0e1652773d
treea8bdc46000b8bf11c484091625d85fb69c102413
parent30ea39e67c96571bc7d8ad4e355dc67aa15fb3d4
Don't allow type comments on expression statements

Includes tests.

Also tweak a comment in Grammar/Grammar.
Grammar/Grammar
Lib/test/test_type_comments.py
Python/graminit.c