[Python-3000] Thoughts on new I/O library and bytecode
thomas at python.org
Sun Feb 25 22:29:09 CET 2007
I'm not sure what makes you say that. There isn't anyone actually using
bytes() right now, so what makes you think how it's created? Besides, lists
can be created with list("foo") too, but they still repr() as ['f', 'o',
On 2/25/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Georg Brandl wrote:
> > Seeing that, I made a patch that makes bytes_repr output a bytes
> 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.
> Python-3000 mailing list
> Python-3000 at python.org
Thomas Wouters <thomas at python.org>
Hi! I'm a .signature virus! copy me into your .signature file to help me
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-3000