~/talk

Lazy Looping: The Next Iteration

Talkat DjangoCon US 2019 · 2019-09-22..09-27· [python, frontend-architecture]
slides:none on file

Shows that iterators are lazy single‑use iterables and that generator functions and generator expressions are the practical ways to build them, with concrete examples: a denumerate generator replacing a list, an around and strip_newlines utilities that implement before/after line context, and an expense summation using csv.reader + generator expression fed to sum. Claims measurable memory efficiency and cleaner, more readable loops; provides working code and points to more_itertools/boltons helpers.

AI-written summary · about

  1. 0:00Intro
  2. 0:32Problem
  3. 0:52Iterables
  4. 1:23Iterators
  5. 2:07File Iterators
  6. 3:16Benefits
  7. 4:17Creating Iterators
  8. 6:30Looping Generators
  9. 9:00Generator Functions
  10. 10:40Looping
  11. 11:43Wrapping Iterators
  12. 14:49Revisiting Problem Code
  13. 15:24Aspirational Programming
  14. 16:55Lazy Looping Helpers
  15. 17:59Windowed
  16. 18:26Generator
  17. 20:54Recap
~/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.