>
> I think the problem in the above is the question mark, not the
> apostrophe.  Removing the question mark makes the error go away for me.

I'm not saying the question mark might not be a problem too; it
doesn't yield any unusual behavior for me, but I may not have tested
it enough.  But any time I put the apostrophe in, I get problems.  In
the link to the worksheet posted, behavior like this resulted, which
is unrelated to the question mark.

sage: def plot_or_not():
....:     '''
....:     ' x^3
....:     '''
....:     f(x)=x^3
------------------------------------------------------------
   File "<ipython console>", line 5
SyntaxError: can't assign to function call (<ipython console>, line 5)

sage: def plot_or_not():
    '''
    ' x^3
    '''
    f=x^3
    plot(f)
....:
sage: plot_or_not()
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call
last)
<snip>
.../element.pyx in sage.structure.element.Element.__xor__ (sage/
structure/element.c:3382)()

RuntimeError: Use ** for exponentiation, not '^', which means xor
in Python, and has the wrong precedence.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to