I want to declare c to be of the type defined by the class Rational.
I'm sure this is easy, but what I want to do is this:

    from sage.rings.rational import Rational
    cdef Rational c

but that doesn't work. Neither does cimport (which I found in a file
somewhere, albeit commented out, and now I know why).

regards
john perry

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to