> For binary representations, we already have the struct module to handle
> the parsing, but for byte sequences with embedded ASCII digits it's
> reasonably common practice to use strings along with the respective type
> constructors.
Sure, but why can't you write
foo = int(bar[start:stop].decode("ascii"))
then? Explicit is better than implicit.
Regards,
Martin
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com