Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2995cc6

Browse files
committed
Issue #23912: Fix code formatting in datamodel.rst.
Patch by James Edwards.
2 parents 339e3f3 + 770319d commit 2995cc6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/reference/datamodel.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2226,9 +2226,9 @@ correctness, implicit special method lookup generally also bypasses the
22262226
:meth:`__getattribute__` method even of the object's metaclass::
22272227

22282228
>>> class Meta(type):
2229-
... def __getattribute__(*args):
2230-
... print("Metaclass getattribute invoked")
2231-
... return type.__getattribute__(*args)
2229+
... def __getattribute__(*args):
2230+
... print("Metaclass getattribute invoked")
2231+
... return type.__getattribute__(*args)
22322232
...
22332233
>>> class C(object, metaclass=Meta):
22342234
... def __len__(self):

0 commit comments

Comments
 (0)