mirror of
https://github.com/python/cpython.git
synced 2025-12-10 19:10:59 +00:00
Name c -> cls in example.
This commit is contained in:
parent
2b29ab1392
commit
52d3e7e6a5
1 changed files with 2 additions and 2 deletions
|
|
@ -673,9 +673,9 @@ example, the following code will print B, C, D in that order::
|
||||||
class D(C):
|
class D(C):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
for c in [B, C, D]:
|
for cls in [B, C, D]:
|
||||||
try:
|
try:
|
||||||
raise c()
|
raise cls()
|
||||||
except D:
|
except D:
|
||||||
print("D")
|
print("D")
|
||||||
except C:
|
except C:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue