On 12/15/2022 3:58 AM, Chris Green wrote:
Thomas Passin <li...@tompassin.net> wrote:I personally tend to useif test: return even inside larger blocks.I always try to avoid multiple returns from functions/methods, as soon as things get complex it's all to easy to miss clean-up etc. "No multiple returns" is often found in programming guidelines.
Yes, or alternatively, "If any branch uses a return, they all should." -- https://mail.python.org/mailman/listinfo/python-list