~/talk

The Five Kinds of Python Functions

Talkat PyData DC 2016 · 2016-10-07..10-09· [python]
links:none on file
slides:none on file

Clear claims and runnable code: five concrete function types are demonstrated with working examples — diesel-engine RPM case study (a naive model then a fitted transform that still needs correction), map/filter/zip laziness showing how Python 3’s lazy built-ins and range avoid huge intermediates, and memoization with lru_cache plus callable objects and generator use (Syracuse/Collatz generator) to scale to large inputs only when cached. Tools: builtins, itertools, functools; performance tradeoffs and when things actually break are shown.

AI-written summary · about

  1. 0:00Introduction
  2. 5:22Breaking mathematical purity
  3. 6:05Basic functions and docstrings
  4. 12:56Higher order functions
  5. 16:27Mapping with map and comprehensions
  6. 23:11Lazy evaluation with iterators
  7. 28:28Combining functions with zip
  8. 37:55Function wrappers for methods
  9. 41:31Lambda functions
  10. 48:54Callable objects and memoization
  11. 57:10Generator functions
  12. 1:02:35Recursive generators
  13. 1:08:37Yield versus return
  14. 1:12:28Summary
~/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.