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

Blake Winton bwinton at latte.ca
Fri Feb 23 17:48:58 CET 2007


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

Later,
Blake.


More information about the Python-3000 mailing list