Georg Brandl wrote: > Seeing that, I made a patch that makes bytes_repr output a bytes literal,
I'm not sure that's a good idea. Any given bytes object is as likely to have been constructed using bytes(...) as using b"...". There's no way of being sure whether displaying it as a string is appropriate or not. I suppose you could scan it for non-ascii codes or something, but that seems a bit dwimish. -- 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
