A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-August/047725.html below:

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

[Python-Dev] Unifying Long Integers and Integers: baseint [Python-Dev] Unifying Long Integers and Integers: baseintSkip 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4