[issue44552] incomplete documentation of __main__.py

2021-07-02 Thread Erik Carstensen
Erik Carstensen added the comment: thanks for the pointer and sorry for the noise! I'll review your text. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker __

[issue44552] incomplete documentation of __main__.py

2021-07-02 Thread Jack DeVries
Jack DeVries added the comment: This is documented in Doc/library/runpy.rst. Specifically, here: > For a simple script, the specified code is simply executed in a fresh module > namespace. For a valid sys.path entry (typically a zipfile or directory), the > entry is first added to the beginn

[issue44552] incomplete documentation of __main__.py

2021-07-02 Thread Erik Carstensen
New submission from Erik Carstensen : I can find partial information on how Python treats __main__.py here: https://docs.python.org/3/library/__main__.html However, it is not documented how python handles __main__.py when passing the Python package to the interpreter without -m. If I have a p