summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErlend E. Aasland <erlend.aasland@protonmail.com>2023-04-27 21:17:43 (GMT)
committerGitHub <noreply@github.com>2023-04-27 21:17:43 (GMT)
commit2cf945bec6cbfe7172c3bb4e1da8b1c3e8a54bc3 (patch)
tree620e5509a1889cb83858f84c98f814fd9f220ccf
parentd50f01ad0a965c6d41e24ef77be0fe643efa1bfd (diff)
downloadcpython-2cf945bec6cbfe7172c3bb4e1da8b1c3e8a54bc3.zip
cpython-2cf945bec6cbfe7172c3bb4e1da8b1c3e8a54bc3.tar.gz
cpython-2cf945bec6cbfe7172c3bb4e1da8b1c3e8a54bc3.tar.bz2
Docs: fix dunders with too many underscores (#103955)
-rw-r--r--Doc/c-api/typeobj.rst2
-rw-r--r--Doc/library/__main__.rst2
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/typeobj.rst b/Doc/c-api/typeobj.rst
index fd8f49c..e963b90 100644
--- a/Doc/c-api/typeobj.rst
+++ b/Doc/c-api/typeobj.rst
@@ -1145,7 +1145,7 @@ and :c:type:`PyType_Type` effectively act as defaults.)
.. data:: Py_TPFLAGS_MANAGED_DICT
- This bit indicates that instances of the class have a ``__dict___``
+ This bit indicates that instances of the class have a ``__dict__``
attribute, and that the space for the dictionary is managed by the VM.
If this flag is set, :const:`Py_TPFLAGS_HAVE_GC` should also be set.
diff --git a/Doc/library/__main__.rst b/Doc/library/__main__.rst
index 761c887..d29cbdf 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::