]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-110138: Improve grammar in idiomatic usage of ``__main__.py`` (#110142)
authorQuentin Agren <quentin.agren@gmail.com>
Sun, 1 Oct 2023 18:32:43 +0000 (14:32 -0400)
committerGitHub <noreply@github.com>
Sun, 1 Oct 2023 18:32:43 +0000 (13:32 -0500)
Doc/library/__main__.rst

index fd60d92d4eb0f94fc789350b25948b1c21657770..d378e40b3906c69e44622e18411cd04e39b2467c 100644 (file)
@@ -238,9 +238,9 @@ package.  For more details, see :ref:`intra-package-references` in the
 Idiomatic Usage
 ^^^^^^^^^^^^^^^
 
-The contents of ``__main__.py`` typically isn't fenced with
-``if __name__ == '__main__'`` blocks.  Instead, those files are kept short,
-functions to execute from other modules.  Those other modules can then be
+The content of ``__main__.py`` typically isn't fenced with an
+``if __name__ == '__main__'`` block.  Instead, those files are kept
+short and import functions to execute from other modules.  Those other modules can then be
 easily unit-tested and are properly reusable.
 
 If used, an ``if __name__ == '__main__'`` block will still work as expected