#17778: preparse behaviour
-------------------------+-------------------------------------------------
Reporter: | Owner:
mantepse | Status: needs_review
Type: | Milestone: sage-6.5
enhancement | Resolution:
Priority: minor | Merged in:
Component: user | Reviewers:
interface | Work issues:
Keywords: | Commit:
preparser | 44e5bb0b3f5026234edc375940e41ecf73579bdb
Authors: | Stopgaps:
Travis Scrimshaw |
Report Upstream: N/A |
Branch: |
public/17778 |
Dependencies: |
-------------------------+-------------------------------------------------
Comment (by tscrim):
Actually, I'm not sure that is true. How are block comments with `"""`
handled? It seems like they are passed as a group to `preparse()` by the
interpreter after stripping out `....:`. So here's what I believe happens:
I type in
{{{
sage: def foo(x):
....: return 5 * x
}}}
which gets fed to the interpreter, which results in
{{{
def foo(x):
return 5 * x
}}}
which then gets sent to the preparser as a complete unit and becomes
{{{
def foo(x):
return Integer(5) * x
}}}
Unless I am misunderstanding something?
--
Ticket URL: <http://trac.sagemath.org/ticket/17778#comment:7>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.