]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-69686: Remove untrue part of `__import__` replacement docs (GH-143261)...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 30 Dec 2025 05:22:47 +0000 (06:22 +0100)
committerGitHub <noreply@github.com>
Tue, 30 Dec 2025 05:22:47 +0000 (05:22 +0000)
commit7fc3aa5575d9ff7a246de87a03138d85d15ca8f6
treef66e28a35fdb676d8bbbc131da796212c32e007e
parent93cb42fcb9be5768a8857e82a036f27fe5727139
[3.13] gh-69686: Remove untrue part of `__import__` replacement docs (GH-143261) (#143282)

gh-69686: Remove untrue part of `__import__` replacement docs (GH-143261)

Remove untrue part of `__import__` replacement docs

The original statement effectively says that replacing `__import__` at global scope affects import statements, and not only that, but only import statements within the rest of the executing module. None of that has been true since at least Python 2.7, I think.

This was likely missed in python/cpython#69686.
(cherry picked from commit 79c03ac0015ccf1cbb759f870e2af9d68f60fe3a)

Co-authored-by: Thanos <111999343+Sachaa-Thanasius@users.noreply.github.com>
Doc/reference/import.rst