r/Python • • May 15 '18

The Ultimate Guide to Data Classes in Python 3.7

https://realpython.com/python-data-classes/
389 Upvotes

47 comments sorted by

View all comments

Show parent comments

2

u/brtt3000 May 16 '18

I don't think anyone using pytbon has ever gone "you know we could really use a new data type".

DataClasses are just a regular class with some convenient decorations.

1

u/[deleted] May 16 '18

Which makes my point....

4

u/brtt3000 May 16 '18

..moot? There is a demand for this type of thing so why would everyone need to carry around their own version?

1

u/[deleted] May 16 '18

Is there a demand? Not one dev I have seen has wanted a new type of class to store data...

5

u/brtt3000 May 16 '18

I do, and this type of thing is used a lot, so maybe meet more people? I dunno.

1

u/[deleted] May 25 '18

What's your usecase?