~/talk

Python Data Model

TalkinSpanishat PyCon Latam 2019 · 2019-08-29..08-31· [python]
links:none on file
slides:none on file

Explains the Python data model and how implementing its special methods (like __init__, __repr__, __len__, __iter__, __getitem__, operator and rich comparison hooks, etc.) lets user-defined classes integrate with core Python behavior. Shows how following the data model makes custom objects behave like built-in types so they become more "pythonic" and unlock their full potential in the language.

AI-written summary · about

  1. 0:00Python Data Model
  2. 1:08What is Data Model
  3. 2:30Magic methods in Python
  4. 4:17Ecosystem integration
  5. 6:49Iteration with magic methods
  6. 10:46Operator overloading
  7. 12:51Object representation
  8. 14:17Object comparison
  9. 15:46Algebraic operators
  10. 17:11Boolean context
  11. 18:34Python Data Classes
  12. 20:39Properties and attributes
  13. 22:27Context managers
  14. 25:14Conclusion and benefits
  15. 26:20Q&A
~/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.