STINNER Victor <[EMAIL PROTECTED]> added the comment:
> I think Martin's suggesting of encoding back to ascii might be
> the best thing to do
As I understand, you would like to use bytes as characters, like
b'{code} {message}'.format(code=100, message='OK'). So why no using
explicit conversion to ASCII? ftp='{code} {message}'.format(code=100,
message='OK').encode('ASCII').
If you need to work on bytes, it means that you will use the full
range 0..255 whereas ASCII reject bytes in 128..255.
_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3982>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com