From: Thomas Grainger Date: Wed, 25 Sep 2024 17:39:14 +0000 (+0100) Subject: import: permit __name__ for use in __name__ = "__main__": (#124381) X-Git-Tag: v3.14.0a1~349 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=162d152146a563e266232f395f28bbf152a6761c;p=thirdparty%2FPython%2Fcpython.git import: permit __name__ for use in __name__ = "__main__": (#124381) permit __name__ for use in __name__ = "__main__": --- diff --git a/Doc/reference/import.rst b/Doc/reference/import.rst index 19b8aa05072c..0b9d1c233d18 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__