mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
fix some more print statements
This commit is contained in:
parent
9a7b901b99
commit
64106fbdaf
1 changed files with 2 additions and 2 deletions
|
|
@ -1918,14 +1918,14 @@ correctness, implicit special method lookup may also bypass the
|
||||||
|
|
||||||
>>> class Meta(type):
|
>>> class Meta(type):
|
||||||
... def __getattribute__(*args):
|
... def __getattribute__(*args):
|
||||||
... print "Metaclass getattribute invoked"
|
... print("Metaclass getattribute invoked")
|
||||||
... return type.__getattribute__(*args)
|
... return type.__getattribute__(*args)
|
||||||
...
|
...
|
||||||
>>> class C(object, metaclass=Meta):
|
>>> class C(object, metaclass=Meta):
|
||||||
... def __len__(self):
|
... def __len__(self):
|
||||||
... return 10
|
... return 10
|
||||||
... def __getattribute__(*args):
|
... def __getattribute__(*args):
|
||||||
... print "Class getattribute invoked"
|
... print("Class getattribute invoked")
|
||||||
... return object.__getattribute__(*args)
|
... return object.__getattribute__(*args)
|
||||||
...
|
...
|
||||||
>>> c = C()
|
>>> c = C()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue