[Python-Dev] Unifying Long Integers and Integers: baseint

Skip Montanaro skip at pobox.com
Thu Aug 12 16:12:27 CEST 2004


    Martin> Java also supports byte arrays in the source, although they are
    Martin> difficult to type:

    Martin>     byte[] request = {'G', 'E', 'T'};

Seems to me that b"GET" would be more Pythonic given existing Python string
literals.

    Martin> As for reading from streams: Java has multiple reader APIs; some
    Martin> return byte strings, some character strings.

I think Guido's proposed 'B' might make sense here.  OTOH, today's 'b' might
work as well, though a switch of that magnitude could probably not be made
until 3.0 if bytes objects are not synonyms for strings.

Skip


More information about the Python-Dev mailing list