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

Skip to content

Commit 52d3e7e

Browse files
committed
Name c -> cls in example.
1 parent 2b29ab1 commit 52d3e7e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/tutorial/classes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,9 +673,9 @@ example, the following code will print B, C, D in that order::
673673
class D(C):
674674
pass
675675

676-
for c in [B, C, D]:
676+
for cls in [B, C, D]:
677677
try:
678-
raise c()
678+
raise cls()
679679
except D:
680680
print("D")
681681
except C:

0 commit comments

Comments
 (0)