[issue16349] Document whether it's safe to use bytes for struct format string
Mark Dickinson
report at bugs.python.org
Sat Nov 3 20:40:04 CET 2012
Mark Dickinson added the comment:
> Also it would be nice to clarify if struct.Struct.format is meant to be > a byte string.
Hmm. That seems wrong to me. After all, the format string is supposed to be a piece of human-readable text rather than a collection of bytes. I think it's borderline acceptable to allow a bytes instance to be passed in for the format (practicality beats purity and all that), but I'd say that the output format should definitely be unicode.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16349>
_______________________________________
More information about the Python-bugs-list
mailing list