Timeline for How to avoid code duplication when else and except are the same?
Current License: CC BY-SA 4.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 22, 2022 at 17:40 | comment | added | JimmyJames | There are definitely advantages to this. If you put the 'issuited' check within the methodA wrapper, you could then do things like put the method references in a sequence and loop over it until one returns True. That's useful if you have a long set of methods and/or need to make things configurable. | |
| S Dec 21, 2022 at 4:21 | review | First answers | |||
| Dec 22, 2022 at 17:46 | |||||
| S Dec 21, 2022 at 4:21 | history | answered | Michael Brandon Morris | CC BY-SA 4.0 |