Tom Pohl added the comment: 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' ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24823> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com