Re: Pyrex problem with cdef'd attribute

2007-06-10 Thread Michael Hoffman
[EMAIL PROTECTED] wrote: > I'll play around a bit > more and if I continue to confuse myself will subscribe to the pyrex mailing > list (or at least use the somewhat clunky gmane.org interface). I find that using a newsreader for gmane stuff is far more convenient. I use Thunderbird to access va

Re: Pyrex problem with cdef'd attribute

2007-06-08 Thread skip
>> I'm using Pyrex 0.9.5.1a. I have this simple Pyrex module: Klaas> You might get more help on the pyrex list. Thanks. On the Pyrex website it says that questions are welcome here as well. I was hoping to avoid yet another mailing list subscription. ;-) Klaas> Yes, since you did

Re: Pyrex problem with cdef'd attribute

2007-06-08 Thread Klaas
On Jun 8, 6:00 am, [EMAIL PROTECTED] wrote: > I'm using Pyrex 0.9.5.1a. I have this simple Pyrex module: You might get more help on the pyrex list. > cdef class Foo: > cdef public char attr > > def __init__(self): > self.attr = 0 > > class Bar(Foo): >

Re: Pyrex: problem with blanks in string

2007-06-04 Thread Michael Hoffman
Hans Terlouw wrote: > When trying to wrap C code using Pyrex, I encountered a strange problem > with a piece of pure Python code. I tried to isolate the problem. The > following code causes Pyrex to generate C code which gcc cannot compile: It works for me. Try posting your error messages and v

Re: pyrex problem

2005-06-17 Thread Andreas Kostyrka
On Fri, Jun 17, 2005 at 01:03:14AM -0700, [EMAIL PROTECTED] wrote: > hi everyone > i'm newbie > > i try to compile the pyrex module: > def controlla(char *test): You cannot have a C datatype in a Python like that. Much better to use def controlla(test): Andreas -- http://mail.python.org/mailman/