Skip to content

Grammar mistake in description of __main__.py idiomatic usage. #110138

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

Closed
kwentine opened this issue Sep 30, 2023 · 0 comments
Closed

Grammar mistake in description of __main__.py idiomatic usage. #110138

kwentine opened this issue Sep 30, 2023 · 0 comments
Labels
docs Documentation in the Doc dir

Comments

@kwentine
Copy link
Contributor

kwentine commented Sep 30, 2023

Documentation

The following sentence in the section about idiomatic usage of __main__.py seems to be missing one word:

Instead, those files are kept short, functions to execute from other modules

I suspect the correct meaning is:

Instead, those files are kept short, importing functions to execute from other modules

I also suggest using the uncountable form of "content" in the first sentence:

The content of main.py typically isn’t fenced with an if __name__ == '__main__' block.

Linked PRs

@kwentine kwentine added the docs Documentation in the Doc dir label Sep 30, 2023
kwentine added a commit to kwentine/cpython that referenced this issue Sep 30, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Oct 1, 2023
pythonGH-110142)

(cherry picked from commit adf0f15)

Co-authored-by: Quentin Agren <quentin.agren@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Oct 1, 2023
pythonGH-110142)

(cherry picked from commit adf0f15)

Co-authored-by: Quentin Agren <quentin.agren@gmail.com>
AlexWaygood pushed a commit that referenced this issue Oct 1, 2023
…`` (GH-110142) (#110189)

gh-110138: Improve grammar in idiomatic usage of ``__main__.py`` (GH-110142)
(cherry picked from commit adf0f15)

Co-authored-by: Quentin Agren <quentin.agren@gmail.com>
Yhg1s pushed a commit that referenced this issue Oct 2, 2023
…`` (GH-110142) (#110188)

gh-110138: Improve grammar in idiomatic usage of ``__main__.py`` (GH-110142)
(cherry picked from commit adf0f15)

Co-authored-by: Quentin Agren <quentin.agren@gmail.com>
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

No branches or pull requests

2 participants