[docs] [issue8925] Improve c-api/arg.rst: use "bytes" or "str" types instead of "string"

STINNER Victor report at bugs.python.org
Tue Jun 8 01:04:59 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>
<http://bugs.python.org/issue8925>
_______________________________________


More information about the docs mailing list