[Python-3000] Thoughts on new I/O library and bytecode
Georg Brandl
g.brandl at gmx.net
Fri Feb 23 18:09:20 CET 2007
Blake Winton schrieb:
> Jason Orendorff wrote:
>> On 2/22/07, Guido van Rossum <guido at python.org> wrote:
>>> If someone would like to volunteer a small PEP on the b"..." literal I
>>> would appreciate it.
>> How do you feel about raw byte-strings (br'a\b\c')
>
> Not that my opinion particularly matters, but I would say "sure" to this
> one. On the other hand, I really don't use raw strings that often, and
> the places I do are pretty much solely regexes, which shouldn't really
> be passed bytes.
>
> > and long byte-strings (b'''...''')?
>
> 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!)
The same that """abc
def""" translates to today, which is, "abc\ndef" on every platform.
Georg
More information about the Python-3000
mailing list