[Pyrex] Function Pointer

Bob Ippolito bob at redivi.com
Fri Mar 5 03:48:52 CET 2004


On Mar 4, 2004, at 9:31 PM, Marco Bubke wrote:

> On Friday 05 March 2004 02:47, Greg Ewing wrote:
>> Ok, the prototype is tesselator_vertex(void* vertex, void* tesselator)
>> but I thought that it shloud be possible to pass python objects.
>>
>> It should be, but it's a bit tricky casting between Python
>> objects and other pointer types, since it's not always
>> obvious what Pyrex will do with the refcounts.
>
> Oh, I don't need ref counting. There will be allways a ref to the 
> object.

Sounds like famous last words to me :)

-bob





More information about the Pyrex mailing list