gh-90437: Fix __main__.py documentation wording (GH-116309)

Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Frank Dana <ferdnyc@gmail.com>
This commit is contained in:
Ali Tavallaie 2024-07-05 02:19:14 +03:30 committed by GitHub
parent 5f660e8e2c
commit cb688bab08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -251,9 +251,9 @@ attribute will include the package's path if imported::
>>> asyncio.__main__.__name__ >>> asyncio.__main__.__name__
'asyncio.__main__' 'asyncio.__main__'
This won't work for ``__main__.py`` files in the root directory of a .zip file This won't work for ``__main__.py`` files in the root directory of a
though. Hence, for consistency, minimal ``__main__.py`` like the :mod:`venv` ``.zip`` file though. Hence, for consistency, a minimal ``__main__.py``
one mentioned below are preferred. without a ``__name__`` check is preferred.
.. seealso:: .. seealso::