[issue39774] Missing documentation on how to make package executable as script

Steven D'Aprano report at bugs.python.org
Thu Feb 27 05:26:26 EST 2020


Steven D'Aprano <steve+python at pearwood.info> added the comment:

You're right that it's hard to find any documentation on package `__main__.py` files. There's nothing here that I can see:

https://docs.python.org/3/reference/import.html#packages

Aside from the tutorial, the only other place I can find it referenced is a really brief aside here:

https://docs.python.org/3/library/__main__.html

----------
nosy: +steven.daprano

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


More information about the Python-bugs-list mailing list