[Pyrex] Tricky: Wrapping a (void *) cookie

Joseph Koshy jkoshy at FreeBSD.ORG
Sat May 3 03:41:52 CEST 2003


>       # Try 1
>       # the following won't work
>       f = Foo()
>       f.foo = v           # Error: Cannot convert 'void (*)' to Python object
> 
>       # Try 2
>       _set_foo_field(p, v)  # this hack works

There is a typo in my previous mail: the last line above should 
read: "_set_foo_field(f, v)".

Regards,
Koshy
<jkoshy at freebsd.org>










More information about the Pyrex mailing list