Hello Simon, You can import the SAGE functionality you need in your module by just importing the appropriate sage modules into your .pyx file. For example, if you want to use the binomial function, just add
from sage.rings.arith import binomial to the top of your .pyx file. --Mike On 9/19/07, Simon King <[EMAIL PROTECTED]> wrote: > > Dear SAGE team, > > On Sep 18, 9:38 pm, i wrote: > > i know how to write "blah.pyx" and turn it into a shared object > > "blah.so" using pyrex, such that i can use the blah-module in python > > by "import blah". > > > > Now i would like to use SAGE functionality in my blah-module. > > Just for avoiding confusion: I know that i can import the module > obtained from blah.pyx both into python and into SAGE. But that's not > the point. > I want to extend the blah-module, i.e., my blah.spyx shall contain > fancy SAGE commands that are unknown to pyrexc. How to get compiled > code in that setting? > > Yours > Simon > > > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@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-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~----------~----~----~----~------~----~------~--~---