Skip to content

[3.10] bpo-39452: Rewrite and expand __main__.rst (GH-26883) #27932

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 24, 2021

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Aug 24, 2021

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 7cba231)

Co-authored-by: Jack DeVries 58614260+jdevries3133@users.noreply.github.com

https://bugs.python.org/issue39452

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 7cba231)

Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
@miss-islington
Copy link
Contributor Author

@jdevries3133 and @ambv: Status check is done, and it's a success ✅ .

1 similar comment
@miss-islington
Copy link
Contributor Author

@jdevries3133 and @ambv: Status check is done, and it's a success ✅ .

Copy link
Contributor

@ambv ambv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doc-only change.

@miss-islington miss-islington merged commit ec5a031 into python:3.10 Aug 24, 2021
@miss-islington miss-islington deleted the backport-7cba231-3.10 branch August 24, 2021 20:54
@miss-islington
Copy link
Contributor Author

@jdevries3133 and @ambv: Status check is done, and it's a success ✅ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants