This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author josiahcarlson
Recipients
Date 2004-09-16.19:23:56
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=341410

Paul, it seems as though there exists a Python function in
pickle that does conversions: encode_long() and
decode_long(), though depending on the size of your longs, a
custom version may be faster (I wrote one that doesn't use
hex, and manages to be 20% faster on integers less than 32
bits).

It also appears that Raymond is going to be placing such a
pair of functions in binascii.

I'm curious as to whether you prefer a variable-width return
as provided by pickle.encode_long, or a fixed-width return
as provided by the struct method I propose.
History
Date User Action Args
2007-08-23 15:36:55adminlinkissue923643 messages
2007-08-23 15:36:55admincreate