]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39452: Rewrite and expand __main__.rst (#26883)
authorJack DeVries <58614260+jdevries3133@users.noreply.github.com>
Tue, 24 Aug 2021 17:01:41 +0000 (13:01 -0400)
committerGitHub <noreply@github.com>
Tue, 24 Aug 2021 17:01:41 +0000 (19:01 +0200)
commit7cba23164cf82f6619db002cd30021b5dfb1f809
tree21b0324f3a913384ca8c88578ff25bca3119a392
parenta24676bedcd332dd7e6fa5521d0449206391d190
bpo-39452: Rewrite and expand __main__.rst (#26883)

Broadened scope of the document to explicitly discuss and differentiate between ``__main__.py`` in packages versus the ``__name__ == '__main__'`` expression (and the idioms that surround it), as well as ``import __main__``.

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
Co-authored-by: Éric Araujo <merwok@netwok.org>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Doc/library/__main__.rst
Doc/reference/import.rst
Doc/tools/susp-ignored.csv
Doc/tutorial/modules.rst
Misc/NEWS.d/next/Documentation/2021-06-23-15-21-36.bpo-39452.o_I-6d.rst [new file with mode: 0644]