[issue46279] [docs] Minor information-ordering issue in __main__ doc

FeRD (Frank Dana) report at bugs.python.org
Sat Jan 8 05:49:21 EST 2022


FeRD (Frank Dana) <ferdnyc at gmail.com> added the comment:

Maybe,

"""
This won’t work for __main__.py files in the root directory of a .zip file though. Thus, for consistency, it is usually preferred to place code in other modules. That code can then be invoked from a minimal ``__main__.py``.
"""

(And then the see-also opens, "See venv for an example of a package with a minimal __main__.py in the standard library." which is a natural extension of the discussion.)

@taleinat's suggestion works as well (crossed streams).

----------
nosy:  -taleinat

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46279>
_______________________________________


More information about the Python-bugs-list mailing list