]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
import: permit __name__ for use in __name__ = "__main__": (#124381)
authorThomas Grainger <tagrain@gmail.com>
Wed, 25 Sep 2024 17:39:14 +0000 (18:39 +0100)
committerGitHub <noreply@github.com>
Wed, 25 Sep 2024 17:39:14 +0000 (10:39 -0700)
permit __name__ for use in __name__ = "__main__":

Doc/reference/import.rst

index 19b8aa05072c733ff18e8e62caea7500355df744..0b9d1c233d182ab4409f3697bd3a00da6432f405 100644 (file)
@@ -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__