DEV Community

Discussion on: You should use Python @dataclass

Collapse
 
dbanty profile image
Dylan Anthony

Really nothing other than the fact that it's built in. I've never really used attrs, does it have any features that dataclasses are missing? Or, put another way, is there any reason to use attrs now that the builtin dataclasses are available?

Collapse
 
gergelypolonkai profile image
Gergely Polonkai

I honestly don’t know, i never used either.

Also, it’s not a problem if they are the same… it’s always delightful seeing a community effort included in the standard library. The same happened to unittest and mock (now available as unittest.mock).