A Deep Dive into Python's Dataclasses (Part 1)

Описание к видео A Deep Dive into Python's Dataclasses (Part 1)

This two-part series of videos takes a deep dive into Python dataclasses.

The goal of these videos is not to learn just the mechanics of defining classes using dataclasses, but rather to understand how dataclasses add functionality to classes, and understand the equivalent code we would have to write using regular classes. Understanding dataclasses at this fundamental level will help you understand why certain things may or may not work in your own dataclasses and how to solve your issues.

So, don't expect a 10-minute run down of how to create dataclasses!!

#mathbyteacademy #dataclass #dataclasses #python

Content
=======
00:00:00 - Introduction
00:03:48 - Basics
00:13:29 - Equality Comparisons
00:17:35 - Hashability
00:21:02 - Immutability
00:30:36 - Ordering
00:39:08 - Serialization (dicts and tuples)
00:41:09 - Fields Introspection
00:43:06 - Recap of dataclass vs standard class so far
00:44:42 - Adding Custom Methods and Properties
00:45:58 - Application: Overriding Default Ordering
00:57:46 - Performance/Resource Considerations vs Named Tuples
01:05:32 - Conclusion & Up Next


Code for this Video
================
Available in GitHub blog repo: https://github.com/fbaptiste/python-blog
Direct link: https://tinyurl.com/7m3jknnn

My Python Courses
=================

- Python 3 Fundamentals (introduction to Python)
https://www.udemy.com/course/python3-...

- Pydantic V2: Essentials
https://www.udemy.com/course/pydantic...

- Python 3 Deep Dive (Part 1 - Functional)
https://www.udemy.com/course/python-3...

- Python 3 Deep Dive (Part 2 - Iteration, Generators)
https://www.udemy.com/course/python-3...

- Python 3 Deep Dive (Part 3 - Hash Maps)
https://www.udemy.com/course/python-3...

- Python 3 Deep Dive (Part 4 - OOP)
https://www.udemy.com/course/python-3...


Fundamentals and Deep Dive Jupyter Notebooks
========================================
All fully-annotated Jupyter notebooks from my Udemy courses are freely available on GitHub:

- https://github.com/fbaptiste/python-f...
- https://github.com/fbaptiste/python-d...

Комментарии

Информация по комментариям в разработке