- changed status to resolved
Syntax error while "Run from selection" with multiple statements
Issue #181
resolved
Run from selection leads to a syntax error if at least one statement in a multiline block contains a number with _ as thousands-delimiter:
b=2_000_000
c=3.5
Selecting this text and pressing F9 yields:
File "<string>", line 1
b=2_000_000
^
SyntaxError: multiple statements found while compiling a single statement
Comments (1)
-
reporter - Log in to comment
fixes issue
#181: from Python 3.8 on, Py_CompileStringFlags requires knowledge about the supported Python feature set (which features from which minimum Python version should be used). Else, underscores in numbers will for instance be blocked, since they are only supported from Python 3.6 on.→ <<cset aeb2a1e40982>>