r/Python • Pythonista • Oct 28 '26

Discussion Pushing the boundary on dataclasses

Has anyone else wanted more out of dataclass? Like transactions, undo/redo, lambda initializers that take parameters (as other field values) and call them in the correct order and no post_init (does not survive a diamond inheritance)? Transactional field values started me down this trek for a "ReactJS" like project to manage the view graph.

0 Upvotes

43 comments sorted by

View all comments

Show parent comment

1

u/Smallpaul Oct 28 '26

In this kind of situation I would ask myself or AI how a Haskell programmer would implement this.

2

u/GianniMariani Pythonista Oct 28 '26

They'd use Lisp?