Главная
Study mode:
on
1
Introduction
2
Checking for errors
3
Encapsulation
4
Data Classes
5
Replace Function
6
Frozen Objects
7
Composing
8
enums
Description:
Explore the power of data classes in Python through a practical, example-driven talk. Learn how to create robust, self-validating types by progressing from traditional approaches to modern solutions using @dataclass. Discover techniques for encapsulating data, ensuring object validity, and creating immutable instances. Follow along as the speaker demonstrates these concepts by building increasingly complex types, from a simple OneToTen class to a composite Person type with validated fields. Gain insights into best practices for data modeling, error checking, and leveraging Python's features to write more reliable and maintainable code.

Making Data Classes Work for You

PyCon US
Add to list