Neil Schemenauer wrote:

> Practicality beats purity here, I think.  For example, if I'm
> debugging a network protocol, I'd prefer
> 
>     b"EHLO ...\x0d\x0a"

But what if I'm *not* debugging a network protocol,
and my bytes objects all look like random gibberish
when displayed as characters?

To put it another way: If bytes objects are displayed
in hex by default (see previous post), I can easily get
them displayed as characters if that's what I want using
str(b, suitable_encoding).

But if they're displayed as characters by default,
what do I do to get them displayed as not-characters?

--
Greg
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to