This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author creachadair
Recipients Trundle, creachadair, theller
Date 2009-10-19.14:50:22
SpamBayes Score 0.00048005983
Marked as misclassified No
Message-id <1255963824.27.0.327494202813.issue7160@psf.upfronthosting.co.za>
In-reply-to
Content
Thank you for setting me straight. 

I see now that I misunderstood the scope of `CFUNCTYPE`, as I was using 
it as a general wrapper when in fact it's only needed for callbacks. 
Mistakenly, I inferred from reading section 16.15.2.4 of the ctypes 
manual [1] that it would be necessary to create prototype wrappers for 
calls into the foreign library as well. Obviously that is not the case, 
since your described solution works fine.

[1] <http://www.python.org/doc/2.6.3/library/ctypes.html#function-
prototypes>
History
Date User Action Args
2009-10-19 14:50:24creachadairsetrecipients: + creachadair, theller, Trundle
2009-10-19 14:50:24creachadairsetmessageid: <1255963824.27.0.327494202813.issue7160@psf.upfronthosting.co.za>
2009-10-19 14:50:22creachadairlinkissue7160 messages
2009-10-19 14:50:22creachadaircreate