From 294398c1029a96df5c6cb50e574f422f1f0ac013 Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Fri, 28 Apr 2023 00:27:59 +0200 Subject: [3.11] Docs: fix dunders with too many underscores (#103955) (#103957) --- Doc/library/__main__.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/__main__.rst b/Doc/library/__main__.rst index 0a93efa..3635967 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:: -- cgit v0.12