https://github.com/python/cpython/commit/3c3f9a209f302599fdd1b6f3f6315028e1b4fcda
commit: 3c3f9a209f302599fdd1b6f3f6315028e1b4fcda
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: brettcannon <[email protected]>
date: 2024-07-04T23:05:02Z
summary:

[3.13] gh-90437: Fix __main__.py documentation wording (GH-116309) (#121385)

gh-90437: Fix __main__.py documentation wording (GH-116309)
(cherry picked from commit cb688bab08559079d0ee9ffd841dd6eb11116181)

Co-authored-by: Ali Tavallaie <[email protected]>
Co-authored-by: Éric <[email protected]>
Co-authored-by: Frank Dana <[email protected]>

files:
M Doc/library/__main__.rst

diff --git a/Doc/library/__main__.rst b/Doc/library/__main__.rst
index 6232e173d9537d..647ff9da04d10d 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::
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to