[Python-ideas] Direct byte<->int conversions (was Re: bitwise operations on bytes)
alexandre at peadrop.com
Sun Aug 16 20:44:30 CEST 2009
On Sat, Aug 15, 2009 at 2:42 PM, Mark Dickinson<dickinsm at gmail.com> wrote:
> On Sat, Aug 15, 2009 at 5:48 PM, Alexandre
> Vassalotti<alexandre at peadrop.com> wrote:
>> On Sat, Aug 15, 2009 at 12:25 PM, Mark Dickinson<dickinsm at gmail.com> wrote:
>>> You say that the 'primary purpose of the API is long serialization'.
>>> I'd argue that that's not quite true.
>> And you are totally right. [...]
> Eh? But I came here for an argument! Isn't this room 12?
Oh, oh, I am sorry. This is agreement. You want 12A, next door. =)
> A couple of other things:
> If these additions to int go in, then presumably the _PyLong_AsBytes
> and _PyLong_FromBytes functions should be documented and made public
> (and have their leading underscores removed, too).
You are referring to _PyLong_FromByteArray and _PyLong_AsByteArray, right?
More information about the Python-ideas