https://github.com/python/cpython/commit/162d152146a563e266232f395f28bbf152a6761c commit: 162d152146a563e266232f395f28bbf152a6761c branch: main author: Thomas Grainger <[email protected]> committer: nanjekyejoannah <[email protected]> date: 2024-09-25T10:39:14-07:00 summary:
import: permit __name__ for use in __name__ = "__main__": (#124381) permit __name__ for use in __name__ = "__main__": files: M Doc/reference/import.rst 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__ _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
