summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.4.rst
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-01-08 23:16:02 (GMT)
committerR David Murray <rdmurray@bitdance.com>2014-01-08 23:16:02 (GMT)
commit0ae7ae1fc9fe8891ad3daf26a2dec3967600a7e7 (patch)
treea90f2b1fe7f91bb14c88518c79ff3c6ed7261f8b /Doc/whatsnew/3.4.rst
parentfdc58fd89753ae5e7e3680e709429e2ac9764f1e (diff)
downloadcpython-0ae7ae1fc9fe8891ad3daf26a2dec3967600a7e7.zip
cpython-0ae7ae1fc9fe8891ad3daf26a2dec3967600a7e7.tar.gz
cpython-0ae7ae1fc9fe8891ad3daf26a2dec3967600a7e7.tar.bz2
whatsnew: InspectLoader.get_code now concrete, b32decode raises binascii.Error.
And a news item rephrase.
Diffstat (limited to 'Doc/whatsnew/3.4.rst')
-rw-r--r--Doc/whatsnew/3.4.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst
index cac02f1..83f151b 100644
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -750,6 +750,11 @@ data and a path and returns a code object. The default implementation
is equivalent to ``compile(data, path, 'exec', dont_inherit=True)``.
(Contributed by Eric Snow and Brett Cannon in :issue:`15627`.)
+:class:`~importlib.abc.InspectLoader` also now has a default implementation
+for the :meth:`~importlib.abc.InspectLoader.get_code` method. However,
+it will normally be desirable to override the default implementation
+for performance reasons. (Contributed by Brett Cannon in :issue:`18072`.)
+
inspect
-------
@@ -1546,6 +1551,13 @@ Changes in the Python API
:exc:`AttributError`. In addition, :meth:`~ssl.SSLSocket.getpeercert`
will raise a :exc:`ValueError` if the handshake has not yet been done.
+* :func:`base64.b32decode` now raises a :exc:`binascii.Error` when the
+ input string contains non-b32-alphabet characters, instead of a
+ :exc:`TypeError`. This particular :exc:`TypeError` was missed when the other
+ :exc:`TypeError`\ s were converted. (Contributed by Serhiy Storchaka in
+ :issue:`18011`.) Note: this change was also inadvertently applied in Python
+ 3.3.3.
+
Changes in the C API
--------------------