[Python-3000] Thoughts on new I/O library and bytecode
Greg Ewing
greg.ewing at canterbury.ac.nz
Sun Feb 25 22:21:42 CET 2007
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
More information about the Python-3000
mailing list