Main.seval
fails to strip whitespace and therefore throws when it shouldn't.
#379
Labels
bug
Something isn't working
Affects: JuliaCall
The issue is that Python's multiline string parsing is different from Julia's and does not strip trailing spaces as much, so the strict behavior of Julia's
Meta.parse
does not make sense for strings that were written using Python's multiline string syntax.I think PyCall doesn't have this issue, but I'm not positive.
I think that a good solution would be to strip inputs before parsing. It's hard to imagine a case when someone would want code with a leading or trailing space to throw a parse error.
The text was updated successfully, but these errors were encountered: