From 12d8db6570b3874e894752f9acdecfce44975379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quentin=20=C3=85gren?= Date: Sat, 30 Sep 2023 06:39:40 -0400 Subject: [PATCH 1/2] Add missing verb --- Doc/library/__main__.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/__main__.rst b/Doc/library/__main__.rst index fd60d92d4eb0f9..3ebc75ef130c25 100644 --- a/Doc/library/__main__.rst +++ b/Doc/library/__main__.rst @@ -239,8 +239,8 @@ 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 +``if __name__ == '__main__'`` blocks. 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 From ce798b407bd67ec357eab43c5e91ceb38dd27af7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quentin=20=C3=85gren?= Date: Sat, 30 Sep 2023 06:40:50 -0400 Subject: [PATCH 2/2] Use uncountable form of 'content' --- Doc/library/__main__.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/__main__.rst b/Doc/library/__main__.rst index 3ebc75ef130c25..d378e40b3906c6 100644 --- a/Doc/library/__main__.rst +++ b/Doc/library/__main__.rst @@ -238,8 +238,8 @@ 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 +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.