summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-10-02 10:03:12 (GMT)
committerGitHub <noreply@github.com>2023-10-02 10:03:12 (GMT)
commitb0a8cb2901be6b5148b3ed1213035c625349e9f0 (patch)
treedc7dac529e86fef62f86381f9485e49546024460 /Doc/library
parent96110e942935cbc812006c63fcba1458d67771a7 (diff)
downloadcpython-b0a8cb2901be6b5148b3ed1213035c625349e9f0.zip
cpython-b0a8cb2901be6b5148b3ed1213035c625349e9f0.tar.gz
cpython-b0a8cb2901be6b5148b3ed1213035c625349e9f0.tar.bz2
[3.12] gh-110138: Improve grammar in idiomatic usage of ``__main__.py`` (GH-110142) (#110188)
gh-110138: Improve grammar in idiomatic usage of ``__main__.py`` (GH-110142) (cherry picked from commit adf0f15a06c6e8ddd1a6d59b28efcbb26289f080) Co-authored-by: Quentin Agren <quentin.agren@gmail.com>
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/__main__.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/__main__.rst b/Doc/library/__main__.rst
index fd60d92..d378e40 100644
--- a/Doc/library/__main__.rst
+++ b/Doc/library/__main__.rst
@@ -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