Timeline for Python - Proper way to call a function within a class based on a certain argument passed on
Current License: CC BY-SA 4.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 27, 2019 at 19:45 | vote | accept | elefant | ||
| Apr 5, 2019 at 13:43 | comment | added | gcali | Isn't a class a little too Java-like for Python? To each language its own, injecting a class instance when all you need is a function seems a little heavy to me! | |
| Nov 20, 2018 at 5:27 | comment | added | Nick Alexeev | generally speaking, this is Strategy design pattern | |
| Oct 24, 2018 at 10:28 | history | answered | Jasmijn | CC BY-SA 4.0 |