From: Ali Tavallaie Date: Thu, 4 Jul 2024 22:49:14 +0000 (+0330) Subject: gh-90437: Fix __main__.py documentation wording (GH-116309) X-Git-Tag: v3.14.0a1~1221 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cb688bab08559079d0ee9ffd841dd6eb11116181;p=thirdparty%2FPython%2Fcpython.git gh-90437: Fix __main__.py documentation wording (GH-116309) Co-authored-by: Éric Co-authored-by: Frank Dana --- diff --git a/Doc/library/__main__.rst b/Doc/library/__main__.rst index 6232e173d953..647ff9da04d1 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::