Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f660e8 commit cb688baCopy full SHA for cb688ba
1 file changed
Doc/library/__main__.rst
@@ -251,9 +251,9 @@ attribute will include the package's path if imported::
251
>>> asyncio.__main__.__name__
252
'asyncio.__main__'
253
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.
+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.
257
258
.. seealso::
259
0 commit comments