#Adapt the doc string to reality.
This commit is contained in:
parent
6d911018f7
commit
e8fd143b7e
@ -1,20 +1,19 @@
|
|||||||
"""Class based built-in exception hierarchy.
|
"""Class based built-in exception hierarchy.
|
||||||
|
|
||||||
This is an experimental new feature whereby all the standard built-in
|
This is a new feature whereby all the standard built-in exceptions,
|
||||||
exceptions, traditionally string object, are replaced with classes.
|
traditionally string objects, are replaced with classes. This gives
|
||||||
This gives Python's exception handling mechanism a more
|
Python's exception handling mechanism a more object-oriented feel.
|
||||||
object-oriented feel.
|
|
||||||
|
|
||||||
Most existing code should continue to work with class based
|
Most existing code should continue to work with class based
|
||||||
exceptions. Some tricky uses of IOError may break, but the most
|
exceptions. Some tricky uses of IOError may break, but the most
|
||||||
common uses should work.
|
common uses should work.
|
||||||
|
|
||||||
To use this new feature, start the python executable with the -X option.
|
To disable this feature, start the Python executable with the -X option.
|
||||||
|
|
||||||
Here is a rundown of the class hierarchy. You can change this by
|
Here is a rundown of the class hierarchy. You can change this by
|
||||||
editing this file, but it isn't recommended. The classes with a `*'
|
editing this file, but it isn't recommended. The classes with a `*'
|
||||||
are new with this feature and are not available unless class based
|
are new with this feature. They are defined as tuples containing the
|
||||||
exceptions are used.
|
derived exceptions when string-based exceptions are used.
|
||||||
|
|
||||||
StandardError(*)
|
StandardError(*)
|
||||||
|
|
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user