Christian Heimes added the comment:

it's in the _operator module because we needed a place to put it that is 
*always* available. The C backend for the hashlib module is only available on 
platforms with OpenSSL (hence the internal name Modules/_hashopenssl.c).

The operator module already contains additional stuff like attrgetter() or 
itemgetter(). compare_digest is a special case of __eq__ with limited data 
types and a constant timing algorithm.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19259>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to