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/047955.html below:

[Python-Dev] Re: adding a bytes sequence type to Python

[Python-Dev] Re: adding a bytes sequence type to Python [Python-Dev] Re: adding a bytes sequence type to Python"Martin v. Löwis" martin at v.loewis.de
Tue Aug 17 22:07:46 CEST 2004
Bill Janssen wrote:
> Yes.  My guess is that if you leave it out, you'll see
> 
>   var = u"foo".encode("ASCII")
> 
> all over the place (assuming that encode() will produce a bytes type).

If you also had

    var = bytes(u"foo")

then I guess people would prefer that. People who want to save typing
can do

    b = bytes

and, given that the u prefix will be redundant, write

   var = b("foo")

Regards,
Martin
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