Typo fixes
This commit is contained in:
parent
f0d12749f1
commit
e67ab55a52
|
@ -40,7 +40,7 @@ currently stands, all exceptions in the built-in namespace inherit
|
|||
from Exception. This is a problem since this includes two exceptions
|
||||
(KeyboardInterrupt and SystemExit) that often need to be excepted from
|
||||
the application's exception handling: the default behavior of shutting
|
||||
the interpreter down with resp. without a traceback is usually more
|
||||
the interpreter down with resp. Without a traceback is usually more
|
||||
desirable than whatever the application might do (with the possible
|
||||
exception of applications that emulate Python's interactive command
|
||||
loop with ``>>>`` prompt). Changing it so that these two exceptions
|
||||
|
@ -94,7 +94,7 @@ location to store any extra information that is to be passed along
|
|||
with the exception that goes beyond the location of the exception
|
||||
within the exception hierarchy and the exception's type.
|
||||
|
||||
No restriction is placed upon what may be passed in for ``messsage``.
|
||||
No restriction is placed upon what may be passed in for ``message``.
|
||||
This provides backwards-compatibility with how the arguments passed
|
||||
into Exception have no restrictions.
|
||||
|
||||
|
@ -148,7 +148,7 @@ BaseException.
|
|||
|
||||
Doing this makes catching Exception more reasonable. It would catch
|
||||
only exceptions that signify errors. Exceptions that signal that the
|
||||
intepreter should exit will not be caught and thus be allowed to
|
||||
interpreter should exit will not be caught and thus be allowed to
|
||||
propagate up and allow the interpreter to terminate.
|
||||
|
||||
KeyboardInterrupt has been moved since users typically expect an
|
||||
|
|
Loading…
Reference in New Issue