diff options
author | Ali Tavallaie <tavallaie@users.noreply.github.com> | 2024-07-04 22:49:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-04 22:49:14 (GMT) |
commit | cb688bab08559079d0ee9ffd841dd6eb11116181 (patch) | |
tree | d2a49dd99d30e29ac3c60153d6ffb26bea3525e2 /Doc/library | |
parent | 5f660e8e2ca3acfb89ccbdd990f072149b6baa6a (diff) | |
download | cpython-cb688bab08559079d0ee9ffd841dd6eb11116181.zip cpython-cb688bab08559079d0ee9ffd841dd6eb11116181.tar.gz cpython-cb688bab08559079d0ee9ffd841dd6eb11116181.tar.bz2 |
gh-90437: Fix __main__.py documentation wording (GH-116309)
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Frank Dana <ferdnyc@gmail.com>
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/__main__.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/__main__.rst b/Doc/library/__main__.rst index 6232e17..647ff9d 100644 --- a/Doc/library/__main__.rst +++ b/Doc/library/__main__.rst @@ -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:: |