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 tom.pohl
Recipients docs@python, eryksun, tom.pohl
Date 2015-08-07.19:54:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1438977242.35.0.671003388474.issue24823@psf.upfronthosting.co.za>
In-reply-to
Content
If one needs to set a general buffer (i.e. not a null-terminated string buffer) one could always use:

>>> string = (ctypes.c_char*4)()
>>> string.raw = b'abcd'
History
Date User Action Args
2015-08-07 19:54:02tom.pohlsetrecipients: + tom.pohl, docs@python, eryksun
2015-08-07 19:54:02tom.pohlsetmessageid: <1438977242.35.0.671003388474.issue24823@psf.upfronthosting.co.za>
2015-08-07 19:54:02tom.pohllinkissue24823 messages
2015-08-07 19:54:02tom.pohlcreate