diff options
author | Guido van Rossum <guido@python.org> | 1997-09-08 02:47:46 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-09-08 02:47:46 (GMT) |
commit | e8fd143b7ed5587ec43c26d15542fc297a79c5b1 (patch) | |
tree | 3a7df45c12f9d92d7f33645a93a2aca521f23015 | |
parent | 6d911018f76be3c45edb253948d1e573463ee472 (diff) | |
download | cpython-e8fd143b7ed5587ec43c26d15542fc297a79c5b1.zip cpython-e8fd143b7ed5587ec43c26d15542fc297a79c5b1.tar.gz cpython-e8fd143b7ed5587ec43c26d15542fc297a79c5b1.tar.bz2 |
#Adapt the doc string to reality.
-rw-r--r-- | Lib/exceptions.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Lib/exceptions.py b/Lib/exceptions.py index 37b9590..9bfa0bc 100644 --- a/Lib/exceptions.py +++ b/Lib/exceptions.py @@ -1,20 +1,19 @@ """Class based built-in exception hierarchy. -This is an experimental new feature whereby all the standard built-in -exceptions, traditionally string object, are replaced with classes. -This gives Python's exception handling mechanism a more -object-oriented feel. +This is a new feature whereby all the standard built-in exceptions, +traditionally string objects, are replaced with classes. This gives +Python's exception handling mechanism a more object-oriented feel. Most existing code should continue to work with class based exceptions. Some tricky uses of IOError may break, but the most 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 editing this file, but it isn't recommended. The classes with a `*' -are new with this feature and are not available unless class based -exceptions are used. +are new with this feature. They are defined as tuples containing the +derived exceptions when string-based exceptions are used. StandardError(*) | |