What are data classes and how are they different from common classes?
Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Peaceful Mind
--
Chapters
00:00 Question
00:38 Accepted answer (Score 448)
03:16 Answer 2 (Score 236)
09:31 Answer 3 (Score 7)
10:41 Answer 4 (Score 5)
11:24 Thank you
--
Full question
https://stackoverflow.com/questions/4795...
Question links:
[PEP 557]: https://www.python.org/dev/peps/pep-0557/
Accepted answer links:
[fill the same role as a ]: https://stackoverflow.com/questions/4428...
[attrs]: http://www.attrs.org/en/stable/
[Advent of Code]: http://adventofcode.com/
[day 7]: https://github.com/mjpieters/adventofcod...
[day 8]: https://github.com/mjpieters/adventofcod...
[day 11]: https://github.com/mjpieters/adventofcod...
[day 20]: https://github.com/mjpieters/adventofcod...
[backported module]: https://pypi.org/p/dataclasses/
Answer 2 links:
[classes, ]: https://stackoverflow.com/questions/3357...
[functools.total_ordering]: https://docs.python.org/3/library/functo...
[hashing logic table]: https://github.com/ericvsmith/dataclasse...
[blog post]: https://realpython.com/python-data-class...
[not implemented]: https://github.com/ericvsmith/dataclasse...
[recursively]: https://stackoverflow.com/questions/5156...
[starred arguments]: https://stackoverflow.com/questions/5076...
[nested dataclasses]: https://stackoverflow.com/questions/5156...
[talk]: https://www.youtube.com/watch?
[talk]: https://www.youtube.com/watch?
[documentation]: https://docs.python.org/3/library/datacl...
[guide]: https://realpython.com/python-data-class.../
[blog post]: https://hackernoon.com/a-brief-tour-of-p...
[github repository]: https://github.com/ericvsmith/dataclasse...
Answer 3 links:
[PEP specification]: https://www.python.org/dev/peps/pep-0557/
Answer 4 links:
[image]: https://i.stack.imgur.com/pvmn9.png
[image]: https://i.stack.imgur.com/ARkeJ.png
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #class #python37 #pythondataclasses
#avk47
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Peaceful Mind
--
Chapters
00:00 Question
00:38 Accepted answer (Score 448)
03:16 Answer 2 (Score 236)
09:31 Answer 3 (Score 7)
10:41 Answer 4 (Score 5)
11:24 Thank you
--
Full question
https://stackoverflow.com/questions/4795...
Question links:
[PEP 557]: https://www.python.org/dev/peps/pep-0557/
Accepted answer links:
[fill the same role as a ]: https://stackoverflow.com/questions/4428...
[attrs]: http://www.attrs.org/en/stable/
[Advent of Code]: http://adventofcode.com/
[day 7]: https://github.com/mjpieters/adventofcod...
[day 8]: https://github.com/mjpieters/adventofcod...
[day 11]: https://github.com/mjpieters/adventofcod...
[day 20]: https://github.com/mjpieters/adventofcod...
[backported module]: https://pypi.org/p/dataclasses/
Answer 2 links:
[classes, ]: https://stackoverflow.com/questions/3357...
[functools.total_ordering]: https://docs.python.org/3/library/functo...
[hashing logic table]: https://github.com/ericvsmith/dataclasse...
[blog post]: https://realpython.com/python-data-class...
[not implemented]: https://github.com/ericvsmith/dataclasse...
[recursively]: https://stackoverflow.com/questions/5156...
[starred arguments]: https://stackoverflow.com/questions/5076...
[nested dataclasses]: https://stackoverflow.com/questions/5156...
[talk]: https://www.youtube.com/watch?
[talk]: https://www.youtube.com/watch?
[documentation]: https://docs.python.org/3/library/datacl...
[guide]: https://realpython.com/python-data-class.../
[blog post]: https://hackernoon.com/a-brief-tour-of-p...
[github repository]: https://github.com/ericvsmith/dataclasse...
Answer 3 links:
[PEP specification]: https://www.python.org/dev/peps/pep-0557/
Answer 4 links:
[image]: https://i.stack.imgur.com/pvmn9.png
[image]: https://i.stack.imgur.com/ARkeJ.png
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #class #python37 #pythondataclasses
#avk47