File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22042204
22052205>>> import a as b; None = 1
22062206Traceback (most recent call last):
2207- SyntaxError: cannot assign to None
2207+ SyntaxError: cannot assign to reserved keyword ' None'
22082208
22092209>>> import a, b as c; d = 1; None = 1
22102210Traceback (most recent call last):
2211- SyntaxError: cannot assign to None
2211+ SyntaxError: cannot assign to reserved keyword ' None'
22122212
22132213>>> from a import b as c; None = 1
22142214Traceback (most recent call last):
2215- SyntaxError: cannot assign to None
2215+ SyntaxError: cannot assign to reserved keyword ' None'
22162216
22172217>>> from a import b, c as d; e = 1; None = 1
22182218Traceback (most recent call last):
2219- SyntaxError: cannot assign to None
2219+ SyntaxError: cannot assign to reserved keyword ' None'
22202220
22212221# Check that we dont raise the "trailing comma" error if there is more
22222222# input to the left of the valid part that we parsed.
You can’t perform that action at this time.
0 commit comments