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

PEP 332 revival in coordination with pep 349?]

[Python-Dev] bytes.from_hex() [Was: PEP 332 revival in coordination with pep 349?] [Python-Dev] bytes.from_hex() [Was: PEP 332 revival in coordination with pep 349?]"Martin v. Löwis" martin at v.loewis.de
Sat Feb 18 01:20:15 CET 2006
Ian Bicking wrote:
> Maybe it isn't worse, but the real alternative is:
> 
>   import zlib
>   import base64
> 
>   base64.b64encode(zlib.compress(s))
> 
> Encodings cover up eclectic interfaces, where those interfaces fit a
> basic pattern -- data in, data out.

So should I write

3.1415.encode("sin")

or would that be

3.1415.decode("sin")

What about

"http://www.python.org".decode("URL")

It's "data in, data out", after all. Who needs functions?

Regards,
Martin
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