This project has moved. For the latest updates, please go here.


Interactive Window does not support line continuations


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
Closed Sep 6, 2013 at 8:58 PM by huguesv


huguesv wrote Aug 29, 2013 at 12:20 AM

Verified that using backslash at the end of the line works for the example above.

The bug report makes it sound like it shouldn't be needed though, and it definitely doesn't work without the backslash.