~/talk

Five Kinds of Python Functions

Talkat PyData DC 2018 · on Friday, 2018-11-16· [python]
links:none on file
slides:none on file

Defines five concrete function forms and shows what each actually buys: plain defs for single-expression returns, higher-order map chains are lazy with composition and zip to build a tachometer→engine table (curve fit plus rounding to nearest 100), lambda for one-off keys, callable objects (.__call__) implementing memoized factorial that speeds repeats, generators that yield lazily to avoid huge lists, and decorators using functools.lru_cache to cut runtime on Project Euler examples.

AI-written summary · about

  1. 0:00Introduction
  2. 11:58Mathematical foundations
  3. 26:59Higher-order functions
  4. 50:39Wrappers for class methods
  5. 55:43Generator expressions
  6. 1:05:05Lambda functions
  7. 1:12:55Memoization
  8. 1:21:41Decorators
  9. 1:25:20Generator functions
  10. 1:31:05Summary
~/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.