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 nikratio
Recipients georg.brandl, nikratio, theller
Date 2009-12-28.15:19:07
SpamBayes Score 4.5058052e-10
Marked as misclassified No
Message-id <1262013548.83.0.743166149617.issue7569@psf.upfronthosting.co.za>
In-reply-to
Content
I don't want to judge if the best way to represent binary data in C is a
void* or char*, but there is a lot of C code out there that uses char*,
and if we want to interface with such a library we need to use
POINTER(c_char).

Note that my docpatch doesn't say anything about using void_p or not:
"For a general *character* pointer that may point to binary data,
POINTER(c_char) must be used". This refers only to char*, so if the C
code uses void* instead, we can of course also use c_void_p on the
Python side.
History
Date User Action Args
2009-12-28 15:19:08nikratiosetrecipients: + nikratio, theller, georg.brandl
2009-12-28 15:19:08nikratiosetmessageid: <1262013548.83.0.743166149617.issue7569@psf.upfronthosting.co.za>
2009-12-28 15:19:07nikratiolinkissue7569 messages
2009-12-28 15:19:07nikratiocreate