From: Quentin Agren Date: Sun, 1 Oct 2023 18:32:43 +0000 (-0400) Subject: gh-110138: Improve grammar in idiomatic usage of ``__main__.py`` (#110142) X-Git-Tag: v3.13.0a1~193 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=adf0f15a06c6e8ddd1a6d59b28efcbb26289f080;p=thirdparty%2FPython%2Fcpython.git gh-110138: Improve grammar in idiomatic usage of ``__main__.py`` (#110142) --- diff --git a/Doc/library/__main__.rst b/Doc/library/__main__.rst index fd60d92d4eb0..d378e40b3906 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