[issue17276] HMAC: deprecate default hash

Christian Heimes report at bugs.python.org
Fri Feb 22 15:51:25 CET 2013


Christian Heimes added the comment:

> I don't know how you intend to make `digestmod` mandatory given the current function signature.

That's easy:

if digestmod is None:
    raise TypeError("HMAC needs argument 'digestmod'")

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17276>
_______________________________________


More information about the Python-bugs-list mailing list