mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
[3.12] gh-90437: Fix __main__.py documentation wording (GH-116309) (GH-121386)
gh-90437: Fix __main__.py documentation wording (GH-116309)
(cherry picked from commit cb688bab08)
Co-authored-by: Ali Tavallaie <tavallaie@users.noreply.github.com>
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Frank Dana <ferdnyc@gmail.com>
This commit is contained in:
parent
4bf4cc22c4
commit
de86aaa160
1 changed files with 3 additions and 3 deletions
|
|
@ -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::
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue