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

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 PythonBill Janssen janssen at parc.com
Wed Aug 18 01:13:21 CEST 2004
Yes, that works for me.

Martin writes:
> 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")

Bill
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