Перейти к содержимому

A Deep Dive Into Python's Object/Data Model | Petr Zemek

Petr Zemek

0:00 / 0:00

A Deep Dive Into Python's Object/Data Model | Petr Zemek

476 просмотров · 2 г. назад
Petr Zemek
140 подписчиков
476 просмотров · 2 г. назад
A pre-recorded version of my talk at a Python Guild at Gen™ from 2024-05-14. Slides and code examples: https://github.com/s3rvac/talks/tree/... 00:00:00 - Greeting 00:00:16 - About me 00:01:51 - Before we begin 00:02:14 - What is an object 00:03:03 - What is an object model 00:03:45 - The basics 00:04:30 - Very little is magical 00:05:15 - Everything is an object 00:07:40 - Object identity, type, value 00:10:01 - Dynamic layout 00:11:54 - Construction and finalization 00:16:50 - Inheritance, MRO 00:19:26 - Methods vs functions 00:21:19 - Underlying storage 00:23:45 - Dict vs slots 00:26:59 - Attribute access 00:28:47 - Hooking into attribute access 00:31:31 - Descriptors 00:42:45 - What is metaprogramming 00:43:38 - Metaclasses 00:45:44 - type metaclass, example 00:50:59 - Creating a class manually 00:53:53 - Relationship between type and object 00:54:59 - Instantiating a class 00:59:15 - Accessing a class attribute 01:00:45 - Alternatives to metaclasses 01:07:03 - Further reading and watching