From 89cc1f4d02593ffc9a49639df60d736be0869fc7 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Mon, 23 Sep 2024 22:25:11 +0100 Subject: [PATCH] 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 19b8aa05072c73..0b9d1c233d182a 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__