File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,12 +4,13 @@ \section{Built-in Exceptions}
44\modulesynopsis {Standard exceptions classes.}
55
66
7- Exceptions can be class objects or string objects. While
8- traditionally most exceptions have been string objects, in Python
9- 1.5, all standard exceptions have been converted to class objects,
10- and users are encouraged to do the same. The exceptions are defined
11- in the module \module {exceptions}; this module never needs to be
12- imported explicitly.
7+ Exceptions can be class objects or string objects. Though most
8+ exceptions have been string objects in past versions of Python, in
9+ Python 1.5 and newer versions, all standard exceptions have been
10+ converted to class objects, and users are encouraged to do the same.
11+ The exceptions are defined in the module \module {exceptions}. This
12+ module never needs to be imported explicitly: the exceptions are
13+ provided in the built-in namespace.
1314
1415Two distinct string objects with the same value are considered different
1516exceptions. This is done to force programmers to use exception names
You can’t perform that action at this time.
0 commit comments