summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2020-11-07 02:45:56 (GMT)
committerGitHub <noreply@github.com>2020-11-07 02:45:56 (GMT)
commit825ac383327255d38b69a753e5e41710bb3ed010 (patch)
tree86543aba40795918c174dbb899528e339c619208 /Doc
parent7c01f1540f958d4f52188b28afca721a9a6925c3 (diff)
downloadcpython-825ac383327255d38b69a753e5e41710bb3ed010.zip
cpython-825ac383327255d38b69a753e5e41710bb3ed010.tar.gz
cpython-825ac383327255d38b69a753e5e41710bb3ed010.tar.bz2
bpo-42133: update parts of the stdlib to fall back to `__spec__.loader` when `__loader__` is missing (#22929)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/3.10.rst24
1 files changed, 24 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst
index 1e6c7c4..a735bf2 100644
--- a/Doc/whatsnew/3.10.rst
+++ b/Doc/whatsnew/3.10.rst
@@ -186,6 +186,12 @@ by :func:`curses.color_content`, :func:`curses.init_color`,
support is provided by the underlying ncurses library.
(Contributed by Jeffrey Kintscher and Hans Petter Jansson in :issue:`36982`.)
+doctest
+-------
+
+When a module does not define ``__loader__``, fall back to ``__spec__.loader``.
+(Contributed by Brett Cannon in :issue:`42133`.)
+
encodings
---------
:func:`encodings.normalize_encoding` now ignores non-ASCII characters.
@@ -198,6 +204,18 @@ Added the *root_dir* and *dir_fd* parameters in :func:`~glob.glob` and
:func:`~glob.iglob` which allow to specify the root directory for searching.
(Contributed by Serhiy Storchaka in :issue:`38144`.)
+inspect
+-------
+
+When a module does not define ``__loader__``, fall back to ``__spec__.loader``.
+(Contributed by Brett Cannon in :issue:`42133`.)
+
+linecache
+---------
+
+When a module does not define ``__loader__``, fall back to ``__spec__.loader``.
+(Contributed by Brett Cannon in :issue:`42133`.)
+
os
--
@@ -217,6 +235,12 @@ The :mod:`shelve` module now uses :data:`pickle.DEFAULT_PROTOCOL` by default
instead of :mod:`pickle` protocol ``3`` when creating shelves.
(Contributed by Zackery Spytz in :issue:`34204`.)
+site
+----
+
+When a module does not define ``__loader__``, fall back to ``__spec__.loader``.
+(Contributed by Brett Cannon in :issue:`42133`.)
+
sys
---