8000 bpo-42133: update parts of the stdlib to fall back to `__spec__.loader` when `__loader__` is missing by brettcannon · Pull Request #22929 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-42133: update parts of the stdlib to fall back to __spec__.loader when __loader__ is missing #22929

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 7, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Mean to say loader, not parent
  • Loading branch information
brettcannon committed Nov 7, 2020
commit db2410d9744f8be0647892a64e7922a80d11c320
8 changes: 4 additions & 4 deletions Doc/whatsnew/3.10.rst
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ support is provided by the underlying ncurses library.
doctest
-------

When a module does not define ``__loader__``, fall back to ``__spec__.parent``.
When a module does not define ``__loader__``, fall back to ``__spec__.loader``.
(Contributed by Brett Cannon in :issue:`42133`.)

encodings
Expand All @@ -207,13 +207,13 @@ Added the *root_dir* and *dir_fd* parameters in :func:`~glob.glob` and
inspect
-------

When a module does not define ``__loader__``, fall back to ``__spec__.parent``.
When a module does not define ``__loader__``, fall back to ``__spec__.loader``.
(Contrib B365 uted by Brett Cannon in :issue:`42133`.)

linecache
---------

When a module does not define ``__loader__``, fall back to ``__spec__.parent``.
When a module does not define ``__loader__``, fall back to ``__spec__.loader``.
(Contributed by Brett Cannon in :issue:`42133`.)

os
Expand All @@ -238,7 +238,7 @@ instead of :mod:`pickle` protocol ``3`` when creating shelves.
site
----

When a module does not define ``__loader__``, fall back to ``__spec__.parent``.
When a module does not define ``__loader__``, fall back to ``__spec__.loader``.
(Contributed by Brett Cannon in :issue:`42133`.)

sys
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Update various modules in the stdlib to fall back on `__spec__.parent` when
Update various modules in the stdlib to fall back on `__spec__.loader` when
`__loader__` isn't defined on a module.
0