Skip to main content

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.