Message95258
| Author |
alexandre.vassalotti |
| Recipients |
alexandre.vassalotti, bob.ippolito, ede, josiahcarlson, loewis, mark.dickinson, mwh, pitrou, rhettinger, tim.peters |
| Date |
2009年11月14日.20:38:08 |
| SpamBayes Score |
4.7110007e-06 |
| Marked as misclassified |
No |
| Message-id |
<1258231092.21.0.673577046452.issue1023290@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Here's an updated patch.
- Renamed tobytes() to to_bytes() and frombytes() to from_bytes().
- Moved the changes to pickle to a different patch.
- Made the NULL-checks more consistent with the rest of long's code.
- Fixed the type check of the `length' parameter of to_bytes() to use
PyIndex_Check() instead of PyLong_Check(). |
|