mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +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):
|
||||
... def __getattribute__(*args):
|
||||
... print "Metaclass getattribute invoked"
|
||||
... print("Metaclass getattribute invoked")
|
||||
... return type.__getattribute__(*args)
|
||||
...
|
||||
>>> class C(object, metaclass=Meta):
|
||||
... def __len__(self):
|
||||
... return 10
|
||||
... def __getattribute__(*args):
|
||||
... print "Class getattribute invoked"
|
||||
... print("Class getattribute invoked")
|
||||
... return object.__getattribute__(*args)
|
||||
...
|
||||
>>> c = C()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue