[sage-support] Re: #if in cython?

2007-10-13 Thread mabshoff



On Oct 14, 2:37 am, Simon King <[EMAIL PROTECTED]> wrote:
> Dear William,
>
> you wrote:
> > This question belongs in the cython or pyrex mailing lists,
> > rather than sage-support, so I've forwarded it there.
>
> After posting my question, i found an answer to my question in the
> web:
> Pyrex 0.9.6 provides conditional compilation. 
> Seehttp://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/version/Doc/...
>
> (However, i didn't succeed to make it work on some easy examples, so
> it seems i need more information)
>
> I do think that my question remains a question for sage, since "sage -
> cython" apparently does not provide that new pyrex functionality. The
> line
> DEF VARI = "Value"
> is accepted by pyrexc, but not by sage -cython.
>

There has been a very recent release of pyrex and the changes/updates
from that release haven't made it into Cython's latest release yet (at
least not the one in the official tree)

> Can you tell me the web address of the pyrex or cython mailin lists,
> so that i can read answers?
>

See http://developer.berlios.de/projects/cython/
> Yours
>Simon

Cheers,

Michael


--~--~-~--~~~---~--~~
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/
-~--~~~~--~~--~--~---



[sage-support] Re: #if in cython?

2007-10-13 Thread Simon King

Dear William,

you wrote:
> This question belongs in the cython or pyrex mailing lists,
> rather than sage-support, so I've forwarded it there.

After posting my question, i found an answer to my question in the
web:
Pyrex 0.9.6 provides conditional compilation. See
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/version/Doc/Manual/basics.html#Conditional_Compilation

(However, i didn't succeed to make it work on some easy examples, so
it seems i need more information)

I do think that my question remains a question for sage, since "sage -
cython" apparently does not provide that new pyrex functionality. The
line
DEF VARI = "Value"
is accepted by pyrexc, but not by sage -cython.

Can you tell me the web address of the pyrex or cython mailin lists,
so that i can read answers?

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/
-~--~~~~--~~--~--~---



[sage-support] Re: #if in cython?

2007-10-13 Thread William Stein

On 10/13/07, Simon King <[EMAIL PROTECTED]> wrote:
>
> Dear sage-supporters,
>
> a question on pyrex/cython:
> I have type definitions depending on an environment variable, such as
>
> #if ZZZ==zzz
> typedef unsigned char FEL;
> #elif ZZZ==bigzzz
> typedef unsigned short FEL;
>
> Is there a way to do a similar thing in pyrex/cython?
>
> Yours sincerely

This question belongs in the cython or pyrex mailing lists,
rather than sage-support, so I've forwarded it there.

William

--~--~-~--~~~---~--~~
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/
-~--~~~~--~~--~--~---



[sage-support] #if in cython?

2007-10-13 Thread Simon King

Dear sage-supporters,

a question on pyrex/cython: 
I have type definitions depending on an environment variable, such as

#if ZZZ==zzz
typedef unsigned char FEL;
#elif ZZZ==bigzzz
typedef unsigned short FEL;

Is there a way to do a similar thing in pyrex/cython?

Yours sincerely
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/
-~--~~~~--~~--~--~---