Status: Accepted
Owner: asmeurer
Labels: Type-Defect Priority-Medium Live
New issue 2594 by asmeurer: Better handling of multi-line statements at
SymPy Live
http://code.google.com/p/sympy/issues/detail?id=2594
If you enter "def f(x):" at SymPy Live and click "Evaluate", you get a
SyntaxError: unexpected EOF while parsing.
I don't think it's clear to a new user that you have to put a function
definition all on one line (though I can't say for sure what is and what
isn't clear to a new user). In Python and IPython, entering something like
this automatically asks for new stuff. Perhaps we should do the same. I'm
not sure what the best solution here is, actually. Should we make
Shift-Enter and Enter act the same (create a newline) when the previous
line ends in ":"? Should we "evaluate" it, but still allow further
indented stuff to be queued in (this would be harder to do
architecturally)? Or should we leave it as it is, but make it clearer that
you can evaluate multiple lines at once?
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.