mirror of
https://github.com/python/cpython
synced 2024-09-16 03:10:05 +00:00
Issue #23912: Fix code formatting in datamodel.rst.
Patch by James Edwards.
This commit is contained in:
parent
1c69c3e3d8
commit
770319d6bd
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue