Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Does this answer your question? Style for control flow with validation checks Commented Dec 22, 2021 at 18:17
  • @gnat I don't think so (or at least I don't see how). That seems to be focused on running a set of validations. My control flow doesn't do validations/the same thing every-time. I Commented Dec 22, 2021 at 19:20
  • 2
    I think it would help to see a code snippet where those methods are called. How is run_type actually determined? Commented Dec 22, 2021 at 19:21
  • Python supports object-oriented programming via classes and duck typing. Does that suggest anything? Commented Jan 4, 2022 at 0:51