~/talk

Reimplement `itertools` for fun & profit

Talkat PyCon US 2025 · 2025-05-16..05-18· [python, developer-experience]
slides:none on file

Reimplements the module itertools by coding 19 iterators in pure Python reimplementation, with automated tests pulled from the GitHub repo to validate behavior. Demonstrates that range is lazy — range(1) and range(99999999999999999) take the same time and constant memory — and shows how next and iter make for loops work. Exercises run in a loop with test feedback, and a working 7–8 line while loop replaces for in the demos.

AI-written summary · about

  1. 0:00Introduction
  2. 0:17The problem
  3. 1:08Rodrigos talk
  4. 2:29What to expect
  5. 2:58Outro
~/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.