diff options
author | Quentin Agren <quentin.agren@gmail.com> | 2023-10-01 18:32:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-01 18:32:43 (GMT) |
commit | adf0f15a06c6e8ddd1a6d59b28efcbb26289f080 (patch) | |
tree | b8394700c1a8f455893439541ceae1c60ba532ec /Doc/library | |
parent | 31097df611bb5c8084190202e095ae47e8b81c0f (diff) | |
download | cpython-adf0f15a06c6e8ddd1a6d59b28efcbb26289f080.zip cpython-adf0f15a06c6e8ddd1a6d59b28efcbb26289f080.tar.gz cpython-adf0f15a06c6e8ddd1a6d59b28efcbb26289f080.tar.bz2 |
gh-110138: Improve grammar in idiomatic usage of ``__main__.py`` (#110142)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/__main__.rst | 6 |
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 |