This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients terry.reedy, zathras
Date 2008-05-02.21:37:46
SpamBayes Score 0.10394082
Marked as misclassified No
Message-id <1209764268.04.0.544874980466.issue2695@psf.upfronthosting.co.za>
In-reply-to
Content
Function is about 2/3rds down in urllib2.

Note 1: hashlib checks upper and lower case versions of names.
So this seems like reasonable request.

Note 2: I would start hashlib.__get_builtin_constructor(name):
with 'name = name.lower()'
and replace first two 'name in' constructions with 'name =='
and shrink 2nd two lists.

Note 3. I would do same with get_algorithm_impls():
   algorithm = algorithm.lower()
Instead of possibly calling .lower twice.

Note 4: I consider 'name = lambda ...' inferior to 'def name...'
but I am not the one who will edit this.

Keyword says patch, but I do not see one.
History
Date User Action Args
2008-05-02 21:37:48terry.reedysetspambayes_score: 0.103941 -> 0.10394082
recipients: + terry.reedy, zathras
2008-05-02 21:37:48terry.reedysetspambayes_score: 0.103941 -> 0.103941
messageid: <1209764268.04.0.544874980466.issue2695@psf.upfronthosting.co.za>
2008-05-02 21:37:46terry.reedylinkissue2695 messages
2008-05-02 21:37:46terry.reedycreate