Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 64106fb

Browse files
committed
fix some more print statements
1 parent 9a7b901 commit 64106fb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/reference/datamodel.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1918,14 +1918,14 @@ correctness, implicit special method lookup may also bypass the
19181918

19191919
>>> class Meta(type):
19201920
... def __getattribute__(*args):
1921-
... print "Metaclass getattribute invoked"
1921+
... print("Metaclass getattribute invoked")
19221922
... return type.__getattribute__(*args)
19231923
...
19241924
>>> class C(object, metaclass=Meta):
19251925
... def __len__(self):
19261926
... return 10
19271927
... def __getattribute__(*args):
1928-
... print "Class getattribute invoked"
1928+
... print("Class getattribute invoked")
19291929
... return object.__getattribute__(*args)
19301930
...
19311931
>>> c = C()

0 commit comments

Comments
 (0)