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

Patch by James Edwards.
This commit is contained in:
Berker Peksag 2015-04-11 14:59:30 +03:00
parent 1c69c3e3d8
commit 770319d6bd

View file

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