Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e8fd143

Browse files
committed
#Adapt the doc string to reality.
1 parent 6d91101 commit e8fd143

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

Lib/exceptions.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
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
87
Most existing code should continue to work with class based
98
exceptions. Some tricky uses of IOError may break, but the most
109
common 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
1413
Here is a rundown of the class hierarchy. You can change this by
1514
editing 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
1918
StandardError(*)
2019
|

0 commit comments

Comments
 (0)