Using Data Classes in Python
Darren Jones
44:52
Description
One new and exciting feature that came out in Python 3.7 was the data class. A data class is a class typically containing mainly data, although there aren’t really any restrictions.
With data classes, you don’t have to write boilerplate code to get proper initialization, representation, and comparisons for your objects.
What You'll Learn?
- Define your own data classes
- Add default values to the fields in your data class
- Customize the ordering of data class objects
- Work with immutable data classes
More details
User Reviews
Rating
Darren Jones
Instructor's CoursesDarren is an avid Pythonista and creates video tutorials for Real Python. Having followed a varied career as a nuclear industry instrumentation engineer, a musician, recording engineer and teacher, he’s always been interested in computers, spending the last 20 years producing music with them and teaching music technology. He’s written books on the subject, and spends the remainder of his time improving his Python skills, with a view to bringing them into the studio and classroom for better understanding of both music and programming.

Real Python
View courses Real Python- language english
- Training sessions 12
- duration 44:52
- Release Date 2023/01/05