News for hackers. Stuff that matters.
Re:The Python Paradox by ElectricalUnion on Friday January 27, 2023 @10:17AM (#34546954)
Unless you use __slots__, aren't all class-based objects [specifically python2 new style `class MyClass(object): pass` or all python3 classes] dicts in Python?
Re:The Python Paradox by gautamdivgi on Friday January 27, 2023 @10:34AM (#34547141)
I was talking about the dataclasses.dataclass annotation in 3.10/3.11. You can use slots with it.

You’re right, they’re dicts unless slots are used. I read the parent comment and saying you can define types easily. But you can with dataclasses