]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Docs: fix dunders with too many underscores (#103955)
authorErlend E. Aasland <erlend.aasland@protonmail.com>
Thu, 27 Apr 2023 21:17:43 +0000 (23:17 +0200)
committerGitHub <noreply@github.com>
Thu, 27 Apr 2023 21:17:43 +0000 (23:17 +0200)
Doc/c-api/typeobj.rst
Doc/library/__main__.rst

index fd8f49ccb1caabb8b5c74c96b5565779dce6d3a7..e963b90628aa495e14021290b335e7c5e8136f8c 100644 (file)
@@ -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.
index 761c88710f98910db8af3e12c93021dd3ff782ff..d29cbdff7830c84b1424bddd9f08673bec095821 100644 (file)
@@ -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::