[issue3982] support .format for bytes
STINNER Victor
report at bugs.python.org
Wed Mar 25 00:28:30 CET 2009
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
loewis> That's indeed exactly what I had proposed
loewis> - only that you shouldn't repeat the .encode('ascii')
loewis> all over the place, (...)
If you can only use bytes 0..127, it can not used for binary protocols
and so I don't think that it's really useful. If your protocol is
ASCII text, use explicit conversion to ASCII.
I also not fan on functions having different result type
(format->bytes or str, it depends...).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3982>
_______________________________________
More information about the Python-bugs-list
mailing list