From 162d152146a563e266232f395f28bbf152a6761c Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Wed, 25 Sep 2024 18:39:14 +0100 Subject: import: permit __name__ for use in __name__ = "__main__": (#124381) permit __name__ for use in __name__ = "__main__": --- Doc/reference/import.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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__ -- cgit v0.12