Skip to content

Commit

Permalink
pythongh-90437: Fix __main__.py documentation wording (pythonGH-116309)
Browse files Browse the repository at this point in the history
(cherry picked from commit cb688ba)

Co-authored-by: Ali Tavallaie <[email protected]>
Co-authored-by: Éric <[email protected]>
Co-authored-by: Frank Dana <[email protected]>
  • Loading branch information
3 people authored and miss-islington committed Jul 4, 2024
1 parent 4bf4cc2 commit d4deb14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Doc/library/__main__.rst
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ attribute will include the package's path if imported::
>>> asyncio.__main__.__name__
'asyncio.__main__'

This won't work for ``__main__.py`` files in the root directory of a .zip file
though. Hence, for consistency, minimal ``__main__.py`` like the :mod:`venv`
one mentioned below are preferred.
This won't work for ``__main__.py`` files in the root directory of a
``.zip`` file though. Hence, for consistency, a minimal ``__main__.py``
without a ``__name__`` check is preferred.

.. seealso::

Expand Down

0 comments on commit d4deb14

Please sign in to comment.