In R, I very frequently set session options to control program flow. For example, if I want my script to run in debug mode i can do options(debug = T)
and then check for it in my script with getOption("debug", F)
. Does python have anything equivalent?
Note this is not the same as passing an argument to my script as I want to not touch the code after starting debugging.