Message102157
The backport wasn't as straightforward as I'd hoped, and we've pretty much run out of time for 2.7.
One issue is that long.from_bytes(b, ...) converts b to bytes type using the equivalent of "bytes(b)". This doesn't work well in 2.7 (consider "bytes([255, 0, 0])" for example. So different code is needed in 2.7 when interpreting an arbitrary Python object as a sequence of bytes.
Perhaps the 2.7 version could just iterate over the given object, and raise an exception if any of the iterates are not integers in the range [0, 256). |
|
Date |
User |
Action |
Args |
2010-04-02 11:20:32 | mark.dickinson | set | recipients:
+ mark.dickinson, mwh, tim.peters, loewis, rhettinger, josiahcarlson, bob.ippolito, pitrou, alexandre.vassalotti, ede, brian.curtin |
2010-04-02 11:20:32 | mark.dickinson | set | messageid: <1270207232.03.0.52250021383.issue1023290@psf.upfronthosting.co.za> |
2010-04-02 11:20:30 | mark.dickinson | link | issue1023290 messages |
2010-04-02 11:20:30 | mark.dickinson | create | |
|