Just to show that something bad seems to be happening, I looked up the
source for prime_pi and copied it into a cell and changed the name to
epi. Well I added print epi(300) and got 0. I also added print "Hello"
and got nothing. In another cell I typed prime_pi(300) and got 62. So
I'm sure that there is a bug in SAGE notebook with docstrings in
personal code.

On 1/28/07, Timothy Clemans <[EMAIL PROTECTED]> wrote:
> On http://sage.math.washington.edu:8100/_uniqued , my first cell
> produces the error:
> Syntax Error:
>      v = primes_first_n(n)
> The second cell does not produce an error. The only difference between
> the code in the two cells is that in the first I have the docstring:
>  r"""
>  EXAMPLES:
>      sage: for i in range(len(uniqued(4))):
>      ....:     print len(uniqued(h)[i]),
>      14 , 5 , 2 , 8 ,
>  """
>
> How do I write my own docstrings and not produce errors like this one.
>

--~--~---------~--~----~------------~-------~--~----~
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://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to