Skip to content

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

@kwentine

Description

@kwentine

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions