[Python-3000] Thoughts on new I/O library and bytecode

Thomas Wouters 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
> 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
> Python-3000 at python.org
> http://mail.python.org/mailman/listinfo/python-3000
> Unsubscribe:
> http://mail.python.org/mailman/options/python-3000/thomas%40python.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...
URL: http://mail.python.org/pipermail/python-3000/attachments/20070225/7ed74f3f/attachment.html 

More information about the Python-3000 mailing list