[issue6239] c_char_p return value returns string, not bytes
Thomas Heller
report at bugs.python.org
Sat Aug 15 11:56:02 CEST 2009
Thomas Heller <theller at ctypes.org> added the comment:
> I agree that the C type 'char' is a byte, not a character. So Python3
> should creates a Python bytes object for the ctypes "c_char_p" type.
> Since Python 3.1 is out, is it too late to change it in the 3.x branch?
> :-) Maybe for Python 3.2?
I think the current behaviour is clearly a bug, so I would apply
this patch to Python 3.1 as well. Any comments? Who will decide that?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6239>
_______________________________________
More information about the Python-bugs-list
mailing list