Re:Don't let dicts spoil your code (2020)
by throwaway894345 on Sunday June 26, 2022 @05:33PM
(#31888218)
There’s also implementation differences. Accessing attributes and methods on a regular class may be slower because (IIRC) it has to do a lookup on each instance’s dict, whereas I believe dataclass implementation is more optimized (I’ve clearly forgotten the details).
[ Parent
| on HN ]
There are no comments on this comment yet.