I don't know anything about python.
As they said than Sage is a python interpreter,
I just try to load the file into Sage directly.

When I try to import it into python, I have a syntax error:

>>> import "~/.sage/rectangle/setup.pyx"
  File "<stdin>", line 1
    import "~/.sage/rectangle/setup.pyx"
                                        ^
SyntaxError: invalid syntax




On Jul 8, 6:10 pm, Robert Bradshaw <[EMAIL PROTECTED]>
wrote:
> On Jul 8, 2008, at 8:32 AM, ibrahim wrote:
>
> > Hello!
>
> > I'm trying to make an integration of existing C++ code by cython and
> > I can't find in the Sage manual how to do so using Cython.
>
> > I tried an example from the wiki.cython explaining
> > how to translate a C++ code to Cython code
> >      - translation of C header into a .pyx file
> >      - writing the corresponding setup file
>
> > But it's impossible to load it from Sage.
>
> > Need some explanations please.
>
> Sorry, I'm not sure if my last email answered your questions. Were  
> you able to get it to run in Python, but now you can't import it into  
> Sage?
>
> - Robert
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to