[Python-checkins] cpython: whatsnew: hashlib.hash.name is now public and returns lowercase always.

r.david.murray python-checkins at python.org
Sun Feb 23 17:42:12 CET 2014


http://hg.python.org/cpython/rev/87dab1bf09c5
changeset: 89338:87dab1bf09c5
user: R David Murray <rdmurray at bitdance.com>
date: Sun Feb 23 10:42:47 2014 -0500
summary:
 whatsnew: hashlib.hash.name is now public and returns lowercase always.
files:
 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
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -748,8 +748,15 @@
 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 @@
 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
 --------------------
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /