4 ms·
I've never heard that Python OOP is any good, not to even mention superior to other contemporary systems (like Java). Could you share the source where it is sai
by jackdaniel 4y ago
I've never heard that Python OOP is any good, not to even mention superior to other contemporary systems (like Java). Could you share the source where it is said that "Python class system is more flexible than other languages"?
- tyingq 4y agoI 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.