#4405: double/single quotation marks in docstring
-----------------------------------------------+----------------------------
Reporter: mvngu | Owner: tba
Type: defect | Status: new
Priority: minor | Milestone: sage-3.2.1
Component: user interface | Resolution:
Keywords: docstring, triple ''', triple """ |
-----------------------------------------------+----------------------------
Comment (by justin):
The following seems to show that Sage parsing is bypassed, in some way,
when using single-quote marks for docstrings.
{{{
sage: def foo(x):
....: """
....: it's a comment.
....: """
....: return x^2
....:
sage: foo(3)
9
sage: def foo(x):
....: '''
....: It's a comment.
....: '''
....: return x^2
....:
sage: foo(3)
1
}}}
In the first case, "!^" is exponentiation; in the second, XOR.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4405#comment:2>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---