You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One would intuitively think that dataclasses are a perfect match for ZODB:
They are in Python's standard library,
Let you define & enforce object schema (attributes, types)
But, 6 years after dataclasses where introduced (Python 3.7) I can find no resources on how they interact with ZODB. Or wether they are usable at all.
The most I found is related to python-attrs (i.e: #378 there).
It would probably be useful to have some insights on how modern Python dataclasses and ZODB interact and how both could be used together (if that is even possible).
The text was updated successfully, but these errors were encountered:
You can store objects in ZODB wich are not augmented by persistence. But this way they will not get automatically updated in ZODB (at commit time) when chaning their attribute values.
It seems dataclasses are not widely used in context with ZODB – so some experimentation would be helpful.
So you are invited to do this experimentation and report back your findings.
Hi,
One would intuitively think that dataclasses are a perfect match for ZODB:
But, 6 years after dataclasses where introduced (Python 3.7) I can find no resources on how they interact with ZODB. Or wether they are usable at all.
The most I found is related to python-attrs (i.e: #378 there).
It would probably be useful to have some insights on how modern Python dataclasses and ZODB interact and how both could be used together (if that is even possible).
The text was updated successfully, but these errors were encountered: