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

[Python-Dev] bytes.from_hex()

[Python-Dev] bytes.from_hex() [Python-Dev] bytes.from_hex()Josiah Carlson jcarlson at uci.edu
Thu Mar 2 07:31:17 CET 2006
Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
>    u = unicode(b)
>    u = unicode(b, 'utf8')
>    b = bytes['utf8'](u)
>    u = unicode['base64'](b)   # encoding
>    b = bytes(u, 'base64')     # decoding
>    u2 = unicode['piglatin'](u1)   # encoding
>    u1 = unicode(u2, 'piglatin')   # decoding

Your provided semantics feel cumbersome and confusing to me, as compared
with str/unicode.encode/decode() .

 - Josiah

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