From: Erlend E. Aasland Date: Thu, 27 Apr 2023 22:27:59 +0000 (+0200) Subject: [3.11] Docs: fix dunders with too many underscores (#103955) (#103957) X-Git-Tag: v3.11.4~149 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=294398c1029a96df5c6cb50e574f422f1f0ac013;p=thirdparty%2FPython%2Fcpython.git [3.11] Docs: fix dunders with too many underscores (#103955) (#103957) --- diff --git a/Doc/library/__main__.rst b/Doc/library/__main__.rst index 0a93efac203c..363596782d8e 100644 --- a/Doc/library/__main__.rst +++ b/Doc/library/__main__.rst @@ -124,7 +124,7 @@ This is where using the ``if __name__ == '__main__'`` code block comes in handy. Code within this block won't run unless the module is executed in the top-level environment. -Putting as few statements as possible in the block below ``if __name___ == +Putting as few statements as possible in the block below ``if __name__ == '__main__'`` can improve code clarity and correctness. Most often, a function named ``main`` encapsulates the program's primary behavior::