summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorJack DeVries <58614260+jdevries3133@users.noreply.github.com>2021-08-24 17:01:41 (GMT)
committerGitHub <noreply@github.com>2021-08-24 17:01:41 (GMT)
commit7cba23164cf82f6619db002cd30021b5dfb1f809 (patch)
tree21b0324f3a913384ca8c88578ff25bca3119a392 /Doc/tutorial
parenta24676bedcd332dd7e6fa5521d0449206391d190 (diff)
downloadcpython-7cba23164cf82f6619db002cd30021b5dfb1f809.zip
cpython-7cba23164cf82f6619db002cd30021b5dfb1f809.tar.gz
cpython-7cba23164cf82f6619db002cd30021b5dfb1f809.tar.bz2
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>
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/modules.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/tutorial/modules.rst b/Doc/tutorial/modules.rst
index af595e5..a495c50 100644
--- a/Doc/tutorial/modules.rst
+++ b/Doc/tutorial/modules.rst
@@ -533,6 +533,8 @@ importing module needs to use submodules with the same name from different
packages.
+.. _intra-package-references:
+
Intra-package References
------------------------