Message94239
| 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:24 | creachadair | set | recipients:
+ creachadair, theller, Trundle |
| 2009年10月19日 14:50:24 | creachadair | set | messageid: <1255963824.27.0.327494202813.issue7160@psf.upfronthosting.co.za> |
| 2009年10月19日 14:50:22 | creachadair | link | issue7160 messages |
| 2009年10月19日 14:50:22 | creachadair | create |
|