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 | <1200263550.24.0.973842334217.issue923643@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年01月13日 22:32:30 | pitrou | set | spambayes_score: 0.00066911 -> 0.00066910987 recipients: + pitrou, phr, josiahcarlson, mark.dickinson, trevp, christian.heimes |
| 2008年01月13日 22:32:30 | pitrou | set | spambayes_score: 0.00066911 -> 0.00066911 messageid: <1200263550.24.0.973842334217.issue923643@psf.upfronthosting.co.za> |
| 2008年01月13日 22:32:29 | pitrou | link | issue923643 messages |
| 2008年01月13日 22:32:28 | pitrou | create | |