[issue29131] Calling printf from the cdll does not print the full string

Steve Dower report at bugs.python.org
Mon Jan 2 00:48:20 EST 2017


Steve Dower added the comment:

In Python 3, this passes a wchar_t* string, but printf('%s') expects a char* string.

You may want to start by looking at the tutorial at https://docs.python.org/3/tutorial/index.html to get a feel for what builtins are available. Using ctypes is fairly advanced functionality that very rarely needs to be used.

----------
nosy: +steve.dower

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


More information about the Python-bugs-list mailing list