diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-11-27 08:53:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-27 08:53:57 (GMT) |
commit | f9861e69c913bfaabf57bfa9a0207d19e192dcde (patch) | |
tree | 5505884fdfc1552a34987a3541b79fee271980cb /Misc | |
parent | 42df73652dba4937489e34a92dbf184a184c2d93 (diff) | |
download | cpython-f9861e69c913bfaabf57bfa9a0207d19e192dcde.zip cpython-f9861e69c913bfaabf57bfa9a0207d19e192dcde.tar.gz cpython-f9861e69c913bfaabf57bfa9a0207d19e192dcde.tar.bz2 |
[3.12] gh-112414: Fix `AttributeError` when calling `repr()` on a namespace package imported with a custom loader (GH-112425) (#112440)
gh-112414: Fix `AttributeError` when calling `repr()` on a namespace package imported with a custom loader (GH-112425)
(cherry picked from commit 0622839cfedacbb48eba27180fd0f0586fe97771)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2023-11-26-13-44-19.gh-issue-112414.kx2E7S.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-11-26-13-44-19.gh-issue-112414.kx2E7S.rst b/Misc/NEWS.d/next/Library/2023-11-26-13-44-19.gh-issue-112414.kx2E7S.rst new file mode 100644 index 0000000..058e5a3 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2023-11-26-13-44-19.gh-issue-112414.kx2E7S.rst @@ -0,0 +1,3 @@ +Fix regression in Python 3.12 where calling :func:`repr` on a module that +had been imported using a custom :term:`loader` could fail with +:exc:`AttributeError`. Patch by Alex Waygood. |