samuelcolvin / python-devtools

Dev tools for python
https://python-devtools.helpmanual.io/
MIT License
985 stars 47 forks source link

"error passing code, SyntaxError" - fails with 4 lines or more? #71

Closed aldanor closed 3 years ago

aldanor commented 4 years ago

So, apparently this fails:

a = 1
debug(
    a,
    a,
    a,
    a,
)

yielding

<ipython-input-540-3818b4c07d3a>:2 <module> (error passing code, SyntaxError: unexpected EOF while parsing (<ipython-input-540-3818b4c07d3a>, line 2))
    1 (int)
    1 (int)
    1 (int)
    1 (int)

However if you join any two of the four lines inside parentheses, it then works just fine.

samuelcolvin commented 3 years ago

fixed in #82