Author mark.dickinson
Recipients alexandre.vassalotti, bob.ippolito, brian.curtin, ede, josiahcarlson, loewis, mark.dickinson, mwh, pitrou, rhettinger, tim.peters
Date 2010-04-02.11:20:30
SpamBayes Score 7.44392e-09
Marked as misclassified No
Message-id <1270207232.03.0.52250021383.issue1023290@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2010-04-02 11:20:32mark.dickinsonsetrecipients: + mark.dickinson, mwh, tim.peters, loewis, rhettinger, josiahcarlson, bob.ippolito, pitrou, alexandre.vassalotti, ede, brian.curtin
2010-04-02 11:20:32mark.dickinsonsetmessageid: <1270207232.03.0.52250021383.issue1023290@psf.upfronthosting.co.za>
2010-04-02 11:20:30mark.dickinsonlinkissue1023290 messages
2010-04-02 11:20:30mark.dickinsoncreate