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/2008-January/076316.html below:

[Python-Dev] What to do for bytes in 2.6?

[Python-Dev] What to do for bytes in 2.6? [Python-Dev] What to do for bytes in 2.6?Neil Schemenauer nas at arctrix.com
Sat Jan 19 19:53:42 CET 2008
Guido van Rossum <guido at python.org> wrote:
> bytes is an alias for str (not even a subclass)
> b"" is an alias for ""

One advantage of a subclass is that there could be a flag that warns
about combining bytes and unicode data.  For example, b"x" + u"y"
would produce a warning.  As someone who writes internationalized
software, I would happly use both the byte designating syntax and
the warning flag, even if I wasn't planning to move to Python 3.

  Neil

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