[Cython] Accessing C attributes from Python functions in the interpreter

Johannes Wienke languitar at semipol.de
Sun Jun 8 10:04:48 CEST 2008


Hi,

Am 06/08/2008 07:44 AM schrieb Stefan Behnel:
> as a side-note:
> 
> Johannes Wienke wrote:
>> cpdef class Foo:
>> 	cdef char* myData
>>
>> 	cdef void setData(Foo self, char *data)
>> 		self.myData = data
> 
> no need to declare the type of self here, you can just write
> 
>  	cdef void setData(self, char *data)
>  		self.myData = data

Yes, I know. This was only one thing I tried to find the bug.... but
without luck. I will try to break it down to a working example today.

Johannes



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://codespeak.net/pipermail/cython-dev/attachments/20080608/7f7d46b5/attachment.pgp 


More information about the Cython-dev mailing list