[Python-checkins] [3.11] Docs: fix dunders with too many underscores (#103955) (#103957)

erlend-aasland webhook-mailer at python.org
Thu Apr 27 18:28:07 EDT 2023


https://github.com/python/cpython/commit/294398c1029a96df5c6cb50e574f422f1f0ac013
commit: 294398c1029a96df5c6cb50e574f422f1f0ac013
branch: 3.11
author: Erlend E. Aasland <erlend.aasland at protonmail.com>
committer: erlend-aasland <erlend.aasland at protonmail.com>
date: 2023-04-27T22:27:59Z
summary:

[3.11] Docs: fix dunders with too many underscores (#103955) (#103957)

files:
M Doc/library/__main__.rst

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::
 



More information about the Python-checkins mailing list