]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-125519: Improve traceback if `importlib.reload()` is called with a non...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 21 Oct 2024 08:20:42 +0000 (10:20 +0200)
committerGitHub <noreply@github.com>
Mon, 21 Oct 2024 08:20:42 +0000 (08:20 +0000)
commit8cc8d7d61ff15b077fc389fbcb0bee60979cea82
treeaa156cae1b5dd7768b0fc938993adb5bf1cffad7
parent9a22ec735fb2f0ec850e70dd119e8422c97567e5
[3.12] gh-125519: Improve traceback if `importlib.reload()` is called with a non-module object (GH-125520) (#125769)

gh-125519: Improve traceback if `importlib.reload()` is called with a non-module object (GH-125520)
(cherry picked from commit c5c21fee7ae1ea689a351caa454c98e716a6e537)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Lib/importlib/__init__.py
Lib/test/test_importlib/test_api.py
Misc/NEWS.d/next/Library/2024-10-15-14-01-03.gh-issue-125519.TqGh6a.rst [new file with mode: 0644]