956
rule
(lemmy.dbzer0.com)
Be sure to follow the rule before you head out.
Rule: You must post before you leave.
"Easier to Ask Forgiveness than Permission" vs. "Look Before You Leap."
In other words, in Python you should just write the code to do the thing and then put an exception handler at the bottom instead of cluttering up your function with guard code everywhere.