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/2006-February/061896.html below:

[Python-Dev] Pre-PEP: The "bytes" object

[Python-Dev] Pre-PEP: The "bytes" objectGreg Ewing greg.ewing at canterbury.ac.nz
Tue Feb 28 07:03:06 CET 2006
Jason Orendorff wrote:

> I like these promises:
>   - bytes(arg) works like array.array('b', arg)
>   - bytes(arg1, arg2) works like bytes(arg1.encode(arg2))

+1. That's exactly how I think it should work, too.

> I dislike these promises:
>   - bytes(s, [ignored]), where s is a str, works like array.array('b', s)
>   - bytes(u, [encoding]), where u is a unicode,
>         works like bytes(u.encode(encoding))

Agreed.

Greg
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