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 Alex.Willmer
Recipients Alex.Willmer, docs@python
Date 2019-06-10.21:02:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1560200535.68.0.253007657272.issue37218@roundup.psfhosted.org>
In-reply-to
Content
Until Python 3.8 hmc.new() defaulted the digestmod argument to 'hmac-md5'. This was deperecated, to be removed in Python 3.8. In Python 3.8.0b1 it is gone, e.g.

Python 3.8.0b1 (default, Jun  6 2019, 03:44:52) 
[GCC 7.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import hmac
>>> hmac.new(b'qwertyuiop').name
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.8/hmac.py", line 146, in new
    return HMAC(key, msg, digestmod)
  File "/usr/lib/python3.8/hmac.py", line 49, in __init__
    raise ValueError('`digestmod` is required.')
ValueError: `digestmod` is required.

but the deprecation note, and the documented signature haven't been updated.

PR incoming
History
Date User Action Args
2019-06-10 21:02:15Alex.Willmersetrecipients: + Alex.Willmer, docs@python
2019-06-10 21:02:15Alex.Willmersetmessageid: <1560200535.68.0.253007657272.issue37218@roundup.psfhosted.org>
2019-06-10 21:02:15Alex.Willmerlinkissue37218 messages
2019-06-10 21:02:15Alex.Willmercreate