]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] 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:28:32 +0000 (10:28 +0200)
committerGitHub <noreply@github.com>
Mon, 21 Oct 2024 08:28:32 +0000 (08:28 +0000)
commit6b31b2dab11223e0066445125332bd8504f706f6
tree512ddb006f2ca95c8265b3b8b57670e05b647d87
parent73bd5bd18ff4fc76d635c970e5c4332349bcb024
[3.13] gh-125519: Improve traceback if `importlib.reload()` is called with a non-module object (GH-125520) (#125768)

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]