3 ms·
Code in __init__ is one of the core concepts of Python; seeing it as a hack is purely individual, and probably based on your own experience with it. It's exactl
by BerislavLopac 4y ago
Code in __init__ is one of the core concepts of Python; seeing it as a hack is purely individual, and probably based on your own experience with it. It's exactly the same as calling mataclasses "a hack".
- Octabrain 4y ago> Code in __init__ is one of the core concepts of Python; seeing it as a hack is purely individual Yes, in fact I started my first message with a clear "As a personal opinion...". Apart from that, the comparison with metaclasses does not make sense. Metaclasses are an OOP concept.