This Python function ignores try and except and always returns finally
When try, except, and finally all have return statements, finally always wins. Python guarantees finally blocks execute no matter what. The return in finally overwrites whatever try was about to return. Three return statements, only one actually returns.
#pythonweirdestlogic #pythonweirdbehavior #pythongotcha #pythontrick #pythonmindblown #pythonunexpected #pythonwtf #pythonhi...
