[Distutils] add hash algorithm agility to RECORD

Daniel Holth dholth at gmail.com
Fri Sep 7 19:58:39 CEST 2012


On Fri, Sep 7, 2012 at 6:59 AM, Daniel Holth <dholth at gmail.com> wrote:
> It's shorter, and it's used extensively in the digital signature format I'm
> using.
>
> On Sep 7, 2012 6:58 AM, "Paul Moore" <p.f.moore at gmail.com> wrote:
>>
>> On 6 September 2012 17:34, Daniel Holth <dholth at gmail.com> wrote:
>> > Proposed edits to
>> > https://bitbucket.org/dholth/python-peps/changeset/9c26fa50
>> >
>> > In wheel I use urlsafe_b64encode_nopad() which omits the trailing =
>> > characters, but although very easy to implement isn't included in the
>> > stdlib. In this spec I use the stdlib urlsafe_b64encode().
>>
>> Why urlsafe_b64encode, rather than just hexdigest which is what is used
>> for md5?
>>
>> Paul.

On the other hand, why encode it at all? CSV supports shoving the raw
bytes in there, no problem. ;-)


More information about the Distutils-SIG mailing list