8000 gh-90437: Fix __main__.py documentation wording (GH-116309) · python/cpython@cb688ba · GitHub
[go: up one dir, main page]

Skip to content

Commit cb688ba

Browse files
tavallaiemerwokferdnyc
authored
gh-90437: Fix __main__.py documentation wording (GH-116309)
Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Frank Dana <ferdnyc@gmail.com>
1 parent 5f660e8 commit cb688ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/__main__.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,9 @@ attribute will include the package's path if imported::
251251
>>> asyncio.__main__.__name__
252252
'asyncio.__main__'
253253

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

258258
.. seealso::
259259

0 commit comments

Comments
 (0)
0