Kaydet (Commit) 770319d6 authored tarafından Berker Peksag's avatar Berker Peksag

Issue #23912: Fix code formatting in datamodel.rst.

Patch by James Edwards.
üst 1c69c3e3
......@@ -2222,9 +2222,9 @@ correctness, implicit special method lookup generally also bypasses the
:meth:`__getattribute__` method even of the object's metaclass::
>>> class Meta(type):
... def __getattribute__(*args):
... print("Metaclass getattribute invoked")
... return type.__getattribute__(*args)
... def __getattribute__(*args):
... print("Metaclass getattribute invoked")
... return type.__getattribute__(*args)
...
>>> class C(object, metaclass=Meta):
... def __len__(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment