Companies Home Search Profile

Using Data Classes in Python

Focused View

Darren Jones

44:52

278 View
  • 462 - PDC - 0 - Intro.mp4
    00:54
  • 462 - PDC - 1 - Comparison.mp4
    03:42
  • 462 - PDC - 2 - Alternatives.mp4
    06:24
  • 462 - PDC - 3 - Basic DC.mp4
    06:25
  • 462 - PDC - 4-0 More Flexible.mp4
    01:33
  • 462 - PDC - 4-1 - Advanced Default Values.mp4
    06:02
  • 462 - PDC - 4-2 - Representation.mp4
    03:16
  • 462 - PDC - 4-3 - Comparison.mp4
    06:14
  • 462 - PDC - 5 - Immutable.mp4
    03:01
  • 462 - PDC - 6 - Inheritance.mp4
    03:18
  • 462 - PDC - 7 - Optimizing.mp4
    03:16
  • 462 - PDC - 8 - Summary.mp4
    00:47
  • data classes course slides.pdf
  • data classes sample code.zip
  • 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
    0
    0
    0
    0
    0
    average 0
    Total votes0
    Focused display
    Category
    Darren Jones
    Darren Jones
    Instructor's Courses

    Darren 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.

    Learn Python online: Python tutorials for developers of all skill levels, Python books and courses, Python news, code examples, articles, and more.
    • language english
    • Training sessions 12
    • duration 44:52
    • Release Date 2023/01/05