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/2009-November/093714.html below:

[Python-Dev] Py3k bytes type in 2.x (Re: nonlocal keyword in 2.x?)

[Python-Dev] Py3k bytes type in 2.x (Re: nonlocal keyword in 2.x?) [Python-Dev] Py3k bytes type in 2.x (Re: nonlocal keyword in 2.x?)Nick Coghlan ncoghlan at gmail.com
Wed Nov 4 13:00:07 CET 2009
Lennart Regebro wrote:
> I also would really like to see a real port of the bytes class to 2.6,
> but I have a vague memory that there was some reason that wouldn't
> work.

Not so much that it wouldn't work, but that the interfaces to support
using it effectively really aren't there - lots of areas in the standard
library needed to be tweaked to cope with bytes objects in 3.x.

Generally speaking, the "bytes = str" trick represents a reasonable
compromise as the APIs that you would pass a bytes object to in 3.x
expect an 8-bit str instance in 2.x.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
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