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 pitrou
Recipients christian.heimes, josiahcarlson, mark.dickinson, phr, pitrou, trevp
Date 2008-01-13.22:32:28
SpamBayes Score 0.00066910987
Marked as misclassified No
Message-id <>
Unless I'm mistaken, the patch provides only half of the solution: the
stringToLong part, but not longToString.
I agree this feature is interesting, not for optimization but becomes it
avoids using clunky ways (long -> hex -> bin) to implement something simple.
However, perhaps making it part of either the binascii or the struct
module would allow more formatting choices (e.g. big-endian or
little-endian, fixed-length or not). For example in cryptography you
would want a byte string of a fixed size even if your 512-bit number
happens to have its 8 most significant bits set to zero.
Date User Action Args
2008-01-13 22:32:30pitrousetspambayes_score: 0.00066911 -> 0.00066910987
recipients: + pitrou, phr, josiahcarlson, mark.dickinson, trevp, christian.heimes
2008-01-13 22:32:30pitrousetspambayes_score: 0.00066911 -> 0.00066911
messageid: <>
2008-01-13 22:32:29pitroulinkissue923643 messages
2008-01-13 22:32:28pitroucreate