diff options
author | R David Murray <rdmurray@bitdance.com> | 2014-02-23 15:42:47 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2014-02-23 15:42:47 (GMT) |
commit | 93a9328326c641747cafa39d9a35bdb88f6c0ccd (patch) | |
tree | 9af0bc4c3d8ee7fa826986c687547614746f62cf | |
parent | 6e1bc7cab916ade2ec8c696f20d8ca3a8bb5b235 (diff) | |
download | cpython-93a9328326c641747cafa39d9a35bdb88f6c0ccd.zip cpython-93a9328326c641747cafa39d9a35bdb88f6c0ccd.tar.gz cpython-93a9328326c641747cafa39d9a35bdb88f6c0ccd.tar.bz2 |
whatsnew: hashlib.hash.name is now public and returns lowercase always.
-rw-r--r-- | Doc/whatsnew/3.4.rst | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst index edc5704..801c134 100644 --- a/Doc/whatsnew/3.4.rst +++ b/Doc/whatsnew/3.4.rst @@ -748,8 +748,15 @@ dictionaries containing the collections statistics since interpreter startup. hashlib ------- -New :func:`hashlib.pbkdf2_hmac` function. -(Contributed by Christian Heimes in :issue:`18582`) +New :func:`hashlib.pbkdf2_hmac` function. (Contributed by Christian Heimes in +:issue:`18582`) + +The :attr:`~hashlib.hash.name` attribute of :mod:`hashlib` hash objects is now +a formally supported interface. It has always existed in CPython's +:mod:`hashlib` (although it did not return lower case names for all supported +hashes), but it was not a public interface and so some other Python +implementations have not previously supported it. (Contributed by Jason R. +Coombs in :issue:`18532`.) hmac @@ -1851,6 +1858,10 @@ Changes in the Python API package. The ``__path__`` for frozen packages is now set to ``[]`` (:issue:`18065`). +* :attr:`hashlib.hash.name` now always returns the identifier in lower case. + Previously some builtin hashes had uppercase names, but now that it is a + formal public interface the naming has been made consistent (:issue:`18532`). + Changes in the C API -------------------- |