Skip to main content\(
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\)
Section 12.6 Glossary
Glossary Glossary
- exception.
-
A signal that a condition has occurred that can’t be easily handled using the normal flow-of-control of a Python program; usually an error.
- handle an exception.
-
To prevent an exception from terminating a program by wrapping the block of code in a try
/ except
construct.
- finally.
-
A clause that comes after exceptions. It is guaranteed to be executed whether a try
block succeeds or not.