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 techtonik
Recipients docs@python, techtonik
Date 2011-07-03.08:02:36
SpamBayes Score 0.008099132
Marked as misclassified No
Message-id <1309680157.38.0.0819979072917.issue12476@psf.upfronthosting.co.za>
In-reply-to
Content
ctypes documentation lacks an example, how to pass a raw data block from Python to a C function. For example, how to pass this chunk:

data = open('somefile', 'rb').read()

to this function:

int checkBuffer(LPSTR lpData, DWORD dwBufferLength);

?
History
Date User Action Args
2011-07-03 08:02:37techtoniksetrecipients: + techtonik, docs@python
2011-07-03 08:02:37techtoniksetmessageid: <1309680157.38.0.0819979072917.issue12476@psf.upfronthosting.co.za>
2011-07-03 08:02:36techtoniklinkissue12476 messages
2011-07-03 08:02:36techtonikcreate