summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-02-02 17:50:48 (GMT)
committerR David Murray <rdmurray@bitdance.com>2014-02-02 17:50:48 (GMT)
commita56d4e8ea180c32bf62855e75fc3728885e02914 (patch)
tree90f496d600a1f6828db069d4576d938e0bd8efcd /Doc/whatsnew
parent5147e00c81e1c219fbcdeb1ea67b8dde4ab34ee8 (diff)
downloadcpython-a56d4e8ea180c32bf62855e75fc3728885e02914.zip
cpython-a56d4e8ea180c32bf62855e75fc3728885e02914.tar.gz
cpython-a56d4e8ea180c32bf62855e75fc3728885e02914.tar.bz2
whatsnew: hmac accepts more bytes types, importlib decode_source, stat in C.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.4.rst18
1 files changed, 18 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst
index 9a6afe5..5854514 100644
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -732,6 +732,16 @@ New :func:`hashlib.pbkdf2_hmac` function.
(Contributed by Christian Heimes in :issue:`18582`)
+hmac
+----
+
+:mod:`hmac` now accepts ``bytearray`` as well as ``bytes`` for the *key*
+argument to the :func:`~hmac.new` function, and the *msg* parameter to both the
+:func:`~hmac.new` function and the :meth:`~hmac.HMAC.update` method now
+accepts any type supported by the :mod:`hashlib` module. (Contributed
+by Jonas Borgström in :issue:`18240`.)
+
+
html
----
@@ -794,6 +804,10 @@ the :class:`.InspectLoader` ABC, which means that ``runpy`` and
``python -m`` can now be used with namespace packages. (Contributed
by Brett Cannon in :issue:`18058`.)
+:mod:`importlib.util` has a new function :func:`~importlib.util.decode_source`
+that decodes source from bytes using universal newline processing. This is
+useful for implementing :meth:`.InspectLoader.get_source` methods.
+
inspect
-------
@@ -1387,6 +1401,10 @@ Other Improvements
* ``python -m`` now works with namespace packages.
+* The :mod:`stat` module is now implemented in C, which means it gets the
+ values for its constants from the C header files, instead of having the
+ values hard-coded in the python module as was previously the case.
+
Significant Optimizations