File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11"""Class based built-in exception hierarchy.
22
3- This is an experimental new feature whereby all the standard built-in
4- exceptions, traditionally string object, are replaced with classes.
5- This gives Python's exception handling mechanism a more
6- object-oriented feel.
3+ This is a new feature whereby all the standard built-in exceptions,
4+ traditionally string objects, are replaced with classes. This gives
5+ Python's exception handling mechanism a more object-oriented feel.
76
87Most existing code should continue to work with class based
98exceptions. Some tricky uses of IOError may break, but the most
109common uses should work.
1110
12- To use this new feature, start the python executable with the -X option.
11+ To disable this feature, start the Python executable with the -X option.
1312
1413Here is a rundown of the class hierarchy. You can change this by
1514editing this file, but it isn't recommended. The classes with a `*'
16- are new with this feature and are not available unless class based
17- exceptions are used.
15+ are new with this feature. They are defined as tuples containing the
16+ derived exceptions when string-based exceptions are used.
1817
1918StandardError(*)
2019 |
You can’t perform that action at this time.
0 commit comments