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/047929.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 PythonGareth McCaughan gmccaughan at synaptics-uk.com
Tue Aug 17 14:19:24 CEST 2004
On Tuesday 2004-08-17 12:13, Anthony Baxter wrote:
> Guido van Rossum wrote:
> > I see that as a huge case for a bytes type, which I've proposed
> > myself; but what's the use case for bytes literals, assuming you can
> > write bytes("foo")?  Does b"foo" really make much of a difference?  Is
> > it so hard to have to write bytes([0x66, 0x6f, 0x6f]) instead of
> > b"\x66\x6f\x6f"?
> 
> It's a pretty marginal case for it. I just played with it a bit, and
> I think after playing with it, I actually prefer the non b'' case.

Another option, with pros and cons of its own: something along
the lines of b"666f6f".

-- 
g

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