[issue8925] Improve c-api/arg.rst: use "bytes" or "str" types instead of "string"
report at bugs.python.org
Tue Jun 8 01:04:58 CEST 2010
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
> There's no way for a buffer compatible object to tell the
> arg parser that it is storing text data.
I think that the buffer protocol targets byte strings/arrays, and that unicode type should be enough.
If applications have to exchange text data, they use utf8, which is a byte string. I don't see the use case. Open a discussion on python-dev if you would like to continue the discussion because this issue is closed.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list