]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-69686: Remove untrue part of `__import__` replacement docs (#143261)
authorThanos <111999343+Sachaa-Thanasius@users.noreply.github.com>
Tue, 30 Dec 2025 05:16:54 +0000 (00:16 -0500)
committerGitHub <noreply@github.com>
Tue, 30 Dec 2025 05:16:54 +0000 (21:16 -0800)
commit79c03ac0015ccf1cbb759f870e2af9d68f60fe3a
tree83a282494e823d9fa3b0e22c4f989bcc202cd085
parentb6b0e14b3d4aa9e9b89bef9a516177238883e1a7
gh-69686: Remove untrue part of `__import__` replacement docs (#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.
Doc/reference/import.rst