SIGN IN SIGN UP

bpo-39452: Rewrite and expand __main__.rst (GH-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>
(cherry picked from commit 7cba23164cf82f6619db002cd30021b5dfb1f809)

Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
M
Miss Islington (bot) committed
ec5a03168f02ef92f98a94796bc6378fc73622e8
Parent: 0af681b
Committed by GitHub <noreply@github.com> on 8/24/2021, 8:54:08 PM