Interactive line continuation woes

Jul 11, 2013 at 12:51 AM
Can not input an assignment across multiple lines.
As simple as
x =
... 2
...
Traceback (most recent call last):
blah blah
code = compile(self.current_code, '<stdin>', 'single', self.code_flags)
File "<stdin>", line 1
x =
   ^
SyntaxError: invalid syntax

Console works and I can do a multi line def ... but assignments across multiple lines all fail as above. Normal line continuation with '\' generates a

SyntaxError: unexpected EOF while parsing

What am I missing?
Coordinator
Jul 11, 2013 at 1:21 AM
I don't think you're missing anything - we're just not correctly detecting that the statement is unfinished.

>>> (x = also behaves incorrectly.
Coordinator
Jul 11, 2013 at 1:22 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.