[issue4309] ctypes documentation

David W. Lambert report at bugs.python.org
Wed Nov 19 16:45:43 CET 2008


David W. Lambert <lambertdw at corning.com> added the comment:

Changing the string to type byte

'Works'
from ctypes import *
libc = CDLL('libc.so.6')
libc.printf(b'hello')

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4309>
_______________________________________


More information about the Python-bugs-list mailing list