-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Dataclasses Considered Sweet | The When of Python Blog
Dataclasses are versatile and they're a crucial part of Python. Firstly, as a great data structure - somewhere orderly and documented to store values. Secondly, as a super-convenient way of defining (most) classes, not just data classes. These benefits do come with a cost though, and these costs will need to be mitigated. If people are commonly going to use dataclasses as generic classes, it is especially important that Python teachers and resources clarify the difference between a class attribute and and instance attribute. Different languages handle this in different ways which only adds to the potential for confusion.
https://whenof.python.nz/blog/dataclasses-considered-sweet.html
Metadata
Metadata
Assignees
Labels
No labels