[issue3982] support .format for bytes
Eric Smith
report at bugs.python.org
Mon Sep 29 12:50:59 CEST 2008
Eric Smith <eric at trueblade.com> added the comment:
> I don't think that b'...'.format() is a good idea. Programmers
> will continue to mix characters and bytes since .format() target
> are characters.
b''.format() would return bytes, not a string. This is also how it works
in 2.6.
I'm also not sold on implementing it, although it would be easy and I
can see a few uses for it. I think Martin's suggesting of encoding back
to ascii might be the best thing to do (that is, don't implement
b''.format()).
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3982>
_______________________________________
More information about the Python-bugs-list
mailing list