2 ms·
I would guess it's talking about things like __str__, __repr__, __add__, __getitem__, __new__, _setattr__, @staticmethod, @property, @dataclass, and so on. I a
by tyingq 4y ago
I would guess it's talking about things like __str__, __repr__, __add__, __getitem__, __new__, _setattr__, @staticmethod, @property, @dataclass, and so on. I agree that doesn't necessarily mean "good", but it is flexible out of the box.
- smitty1e 4y agoThat is, python seems a relatively good set of enginering tradeoffs. Things more or less work as one would expect. Where it becomes challenging is a library using reflection extensively, like SQLAlchemy.
- p_l 4y agoThose are majorly bad bandaids over bad design in my experience, with a dash of legacy of magic names in a dict as implementation strategy... Nowhere close even to standard CLOS without using any of the MOP extensions.