[Python-ideas] A way to subscript a single integer from bytes

Jacco van Dorp j.van.dorp at deonet.nl
Wed May 2 02:48:14 EDT 2018


> I think this method is easy to miss, since people look at the docs for bytes
> (e.g. using dir(bytes)). It might be worthwhile to either add a
> `bytes.to_int(...)` method (better, IMHO), or to point to int.from_bytes on
> the relevant part of the docs.
>
> Elazar

A note in the docs about int.from_bytes seems more than warranted to me to.

Jacco


More information about the Python-ideas mailing list