June 7, 2010
11:04 p.m.
STINNER Victor <victor.stinner@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@bugs.python.org> <http://bugs.python.org/issue8925> _______________________________________