~/talk

It's Pythons All The Way Down: Python Types & Metaclasses Made Simple

Talkat PyCon AU 2019 · 2019-08-02..08-06· [python]
linkedin:bedmondmark
slides:none on file

Explains how Python implements types and classes, shows type(...) as a class factory to make classes dynamically, demos descriptors with __get__/__set__/__delete__ and the newer __set_name__ on descriptors that often removes the need for metaclasses, and surveys real uses: Django ModelBase registering models and adding per-model exceptions and field names, ABC meta enforcing abstract methods, dynamic mixin-combinations, and class-decorator or codegen alternatives; complexity is real but the patterns shown work and are useful when justified.

AI-written summary · about

  1. 0:00Intro
  2. 0:30Welcome
  3. 2:03Commercial break
  4. 3:28Overview
  5. 4:41Python Types
  6. 9:47Core Types
  7. 12:27Class Types
  8. 14:22What is a Class
  9. 21:07Defining a Class
  10. 22:38Inheritance
  11. 31:25Python Methods
  12. 33:50Questions
  13. 37:15Type
  14. 48:15Class attribute lookup
  15. 54:16Model class
  16. 55:29Metaclasses in Python
  17. 57:29Django Metaclasses
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.