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

Thomas Wouters thomas at python.org
Sat Feb 24 01:09:20 CET 2007


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])

On 2/23/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
>
> Blake Winton wrote:
>
> > What would:
> > b"""abc
> > def"""
> > translate into, exactly?
> > [ 97, 98, 99, 10, 100, 101, 102 ]?
> > [ 97, 98, 99, 13, 10, 100, 101, 102 ]?
> > Platform-dependent?  (Ewwww!)
>
> No, presumably it would always translate the newline
> into "\n" regardless of platform, as with current strings.
>
> --
> 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
spread!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-3000/attachments/20070223/653a8b6b/attachment.html 


More information about the Python-3000 mailing list