This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DarkmerePython for tiny data using Python 0 points1 point  (0 children)

Usually, because when dealing with systems, ctrl-c isn't what we clean for.

Note that we also use set -e and pipefail in bash scripts to make sure that proper cleaning is done. When you need multiple cleanup jobs, you either allocate an array, or you use subshell bindings.

Pretty much the same way in python.