]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-90437: Fix __main__.py documentation wording (GH-116309)
authorAli Tavallaie <tavallaie@users.noreply.github.com>
Thu, 4 Jul 2024 22:49:14 +0000 (02:19 +0330)
committerGitHub <noreply@github.com>
Thu, 4 Jul 2024 22:49:14 +0000 (15:49 -0700)
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Frank Dana <ferdnyc@gmail.com>
Doc/library/__main__.rst

index 6232e173d9537d8c5ed7776f6b83050e8a650063..647ff9da04d10de277a8e66519993114d7c2ceaa 100644 (file)
@@ -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::