Strictly speaking the
sys.exit() call is not a part of the
language but a library function. It however affects the control flow not less than
exceptions and probably even severer. So I decided that it would be a good idea to
sys.exit() calls and highlight them explicitly.
A peculiar thing here is that the
sys.exit() could look
different depending on how the import is done.
Certainly, there is
eval("...") call as well which is very
hard to cover (and this case is not covered) but handling the most common cases is better
As a matter of fact
sys.exit() is internally implemented using
exceptions so it makes sense to use similar graphics for
sys.exit() and exceptions.
This is what is done: the exception arrow icon is replaced with a stop sign icon and the
graphics shape is shared. The result is that the
sys.exit() calls are easily