summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorThomas Grainger <tagrain@gmail.com>2024-09-25 17:39:14 (GMT)
committerGitHub <noreply@github.com>2024-09-25 17:39:14 (GMT)
commit162d152146a563e266232f395f28bbf152a6761c (patch)
tree9c9fbb9042fe50e704067a80120889c70289ac0b /Doc
parent828583a7855f15edc96e6721c226ace098ba463b (diff)
downloadcpython-162d152146a563e266232f395f28bbf152a6761c.zip
cpython-162d152146a563e266232f395f28bbf152a6761c.tar.gz
cpython-162d152146a563e266232f395f28bbf152a6761c.tar.bz2
import: permit __name__ for use in __name__ = "__main__": (#124381)
permit __name__ for use in __name__ = "__main__":
Diffstat (limited to 'Doc')
-rw-r--r--Doc/reference/import.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/import.rst b/Doc/reference/import.rst
index 19b8aa0..0b9d1c2 100644
--- a/Doc/reference/import.rst
+++ b/Doc/reference/import.rst
@@ -544,7 +544,7 @@ the module.
It is **strongly** recommended that you rely on :attr:`__spec__` and
its attributes instead of any of the other individual attributes
-listed below.
+listed below, except :attr:`__name__`.
.. attribute:: __name__