Dear William,
I think I finally see where my problem comes from: Is it true that a
line starting with '... ' is considered as a Sage prompt, respectively
as a continuation of the preceding line?
I think so, because of the following.
In a file foobar.py, I put
def f(x):
r"""
test
EXAMPLES:
sage: print "Initialize cohomology ring of group number 1 of order
2"
Initialize cohomology ring of group number 1 of order 2
sage: print "... Initialize cohomology ring of group number 1 of
order 2"
... Initialize cohomology ring of group number 1 of order 2
"""
return x
Then I run sage -t foobar.py. Result:
**********************************************************************
File "/home/king/SAGE/work/foobar.py", line 8:
sage: print "... Initialize cohomology ring of group number 1 of
order 2"
Initialize cohomology ring of group number Integer(1) of order
Integer(2)
Expected nothing
Got:
... Initialize cohomology ring of group number 1 of order 2
**********************************************************************
Hence, apparently the line '... Initialize' is counted as an input (it
is preparsed).
Or what happens there?
What can I do to change it?
Cheers
Simon
--~--~---------~--~----~------------~-------~--~----~
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-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---