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/2011-May/111583.html below:

[Python-Dev] Python 3.x and bytes

[Python-Dev] Python 3.x and bytes [Python-Dev] Python 3.x and bytesEthan Furman ethan at stoneleaf.us
Mon May 23 19:20:50 CEST 2011
Glyph Lefkowitz wrote:
> In fact, I feel like I would want to push in the opposite direction: 
> don't treat one-byte bytes slices less like integers; I wish I could 
> more easily treat n-byte sequences _more_ like integers! :).  More 
> protocols have 2-byte or 4-byte network-endian packed integers embedded 
> in them than have individual tag bytes that I want to examine.

So are you thinking that bytes([01,56])[:2] == 120 ?  Or more along the 
lines of a .to_int() method?

~Ethan~
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