Timeline for python factory function best practices
Current License: CC BY-SA 4.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 23, 2020 at 22:37 | comment | added | william_grisaitis | This is a matter of opinion, but I think this is why classmethods are used for different constructors. Here you have subclasses that (a) have no differences in behavior (same methods and attributes) and (b) only differ in pre-processing for initialization. I think this would make sense, however, if the subclasses had different behavior / weren't fungible. | |
| Aug 28, 2018 at 9:20 | review | First posts | |||
| Aug 29, 2018 at 14:36 | |||||
| Aug 28, 2018 at 9:15 | history | answered | mdeff | CC BY-SA 4.0 |