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

Georg Brandl g.brandl at gmx.net
Sat Feb 24 11:20:46 CET 2007


Thomas Wouters schrieb:
> 
> That's exactly what it does in current p3yk:
> 
> Python 3.0x (p3yk:53867M, Feb 23 2007, 20:06:03)
> [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>  >>> b"""abc
> ... def"""
> bytes([0x61, 0x62, 0x63, 0x0a, 0x64, 0x65, 0x66])

Seeing that, I made a patch that makes bytes_repr output a bytes literal,
see attached diff.

Happy PyCon-ing,
Georg

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bytes-repr.diff
Url: http://mail.python.org/pipermail/python-3000/attachments/20070224/cac06f37/attachment.diff 


More information about the Python-3000 mailing list