On Tue, 24 Oct 2006 12:39:09 -0500, Techniq <[EMAIL PROTECTED]> wrote:

>
> I'm trying the simple pyrex examples in the programming guide from
> sections "5.2.4 A simple loop example: Sum of squares" and "5.2.5
> Example: 2 Power" and I'm receiving syntax errors when inputting the
> {{{%pyrex...}}} data into the worksheet.  Any ideas?  What am I doing
> wrong?
>
> sage: {{{
>    ...: %pyrex
>    ...: two = int(2)
> ------------------------------------------------------------
>    File "<ipython console>", line 3
>      two = int(Integer(2))
>        ^
> <type 'exceptions.SyntaxError'>: invalid syntax

Are inputing the data into a SAGE worksheet or into the command line?
In all cases you should omit the {{{'s.  Those are there only to
distinguish input and output from the rest of the text.

There is no pyrex mode for the SAGE command line -- you can only use
pyrex mode with the SAGE notebook.

William

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

Reply via email to