Skip to content

Commit 4dd71dc

Browse files
polishing
1 parent f6d67c8 commit 4dd71dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/tutorial/classes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,8 +656,8 @@ For examnple::
656656
>>> class CatDog(Cat, Dog):
657657
... pass
658658
...
659-
>>> cat_dog = CatDog()
660-
>>> cat_dog.whoami()
659+
>>> catdog = CatDog()
660+
>>> catdog.whoami()
661661
I'm a Dog
662662

663663
In reality it is a little more complicated. Python uses the C3 method

0 commit comments

Comments
 (0)