[sage-devel] Re: pyrex globals

2006-10-29 Thread William Stein
On Sun, 29 Oct 2006 11:09:44 -0700, David Harvey <[EMAIL PROTECTED]> wrote: > On Oct 29, 2006, at 12:01 PM, William Stein wrote: >> After building, from the interpreter I did this: >> >> sage: import sage.modular.modsym.p1list as p >> sage: p.test_foo(10) >> 100 > > Sweet. Well, maybe we should

[sage-devel] Re: pyrex globals

2006-10-29 Thread David Harvey
On Oct 29, 2006, at 12:01 PM, William Stein wrote: > After building, from the interpreter I did this: > > sage: import sage.modular.modsym.p1list as p > sage: p.test_foo(10) > 100 Sweet. Well, maybe we should be doing that in a few places then. Seems very clean and natural. David --~--~---

[sage-devel] Re: pyrex globals

2006-10-29 Thread William Stein
On Sun, 29 Oct 2006 09:08:27 -0700, David Harvey <[EMAIL PROTECTED]> wrote: > You CAN export module-level cdef functions from one pyrex module to > another. I didn't realize this... > I added the following to arith.pyx: > > == > cdef public int my_function(int x): >