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/2004-October/049208.html below:

[Python-Dev] proposed struct module format code addition

[Python-Dev] proposed struct module format code addition [Python-Dev] proposed struct module format code additionShane Holloway (IEEE) shane.holloway at ieee.org
Sun Oct 3 21:28:30 CEST 2004
Since "long" is supposed to be a full-fledged member of the python 
building blocks, I'm +1 for functions being added in both binascii and 
struct.

One of the greatest things I use struct is for is packing (and 
unpacking) the python building blocks for "external use" -- network, 
database, and (usually C) libraries.  I think it would be best if all 
the building blocks could be packed and unpacked from one module.

The additions to binascii would be more convenient to use of the two 
additions.  But truth to tell, I rarely use binascii.  I tend to prefer 
struct.pack with str.encode.

What do you think about adding long.tobytes()/long.frombytes() to go 
with the new bytes() type?  <wink>

-Shane Holloway
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