[issue18742] Abstract base class for hashlib
Christian Heimes
report at bugs.python.org
Sun Nov 17 17:39:19 CET 2013
Christian Heimes added the comment:
* "Cryptographic Hash Function" is the correct technical term for algorithms like SHA-1. http://en.wikipedia.org/wiki/Cryptographic_hash_function
* PEP 452 is going to suggest that 3rd party libraries register their hash function as subclasses of the ABC.
* __slots__ are required for subclassing. All our ABCs in Python 3.x have __slots__
* I don't want to import yet another module just for the ABC. I'd rather not provide a sample implementation of hexdigest() if you think it is too slow.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18742>
_______________________________________
More information about the Python-bugs-list
mailing list