~/talk

Under and Dunder - Python secret functions

Talkat PyConline AU 2020 · 2020-09-04..09-06· [python]
slides:none on file

Shows how Python reveals hidden methods by uses dir to inspect dunder methods and demonstrates concrete effects for __getitem__, __iter__ and __next__. Explains name mangling and where double‑underscore names go with shows name‑mangling of double underscores. Live builds an example class that becomes iterable and yields squares and even a bogus length so you can see behavior change with builds iterable class that yields squares and a fake __len__ of 999.

AI-written summary · about

  1. 0:00Intro
  2. 1:52Overview
  3. 5:56Dunder
  4. 6:54Secret function
  5. 7:22Sequential object
  6. 8:12Get items
  7. 8:33Sequence
  8. 10:07Link
  9. 10:28List
  10. 10:52Link method
  11. 11:38Iterable
~/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.