This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ferdnyc
Recipients docs@python, eric.araujo, ferdnyc, jacksonbrummell1
Date 2022-01-08.10:49:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1641638961.01.0.453931025008.issue46279@roundup.psfhosted.org>
In-reply-to
Content
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).
History
Date User Action Args
2022-01-08 10:49:21ferdnycsetrecipients: + ferdnyc, eric.araujo, docs@python, jacksonbrummell1
2022-01-08 10:49:21ferdnycsetmessageid: <1641638961.01.0.453931025008.issue46279@roundup.psfhosted.org>
2022-01-08 10:49:20ferdnyclinkissue46279 messages
2022-01-08 10:49:20ferdnyccreate