mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
#3525: 3.0 exception changes in tutorial.
This commit is contained in:
parent
1e3830a178
commit
f5f2630db6
2 changed files with 16 additions and 20 deletions
|
|
@ -671,7 +671,7 @@ class or a base class thereof (but not the other way around --- an except clause
|
|||
listing a derived class is not compatible with a base class). For example, the
|
||||
following code will print B, C, D in that order::
|
||||
|
||||
class B:
|
||||
class B(Exception):
|
||||
pass
|
||||
class C(B):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue