~/talk

The Virtues of Being Lazy

Talkat PyCon AU 2026 · 2026-08-26..08-30· [python]
links:none on file
slides:none on file

Describes a concrete claim: Python 3.15 adds a lazy keyword that defers module imports to first use and measurably cuts startup time and memory. Live demo shows importing pandas taking about 7 seconds on an older i7 and then becoming instant when unused under lazy imports. Details: lazy is a soft keyword, thread safe, works with from but not star imports, does not cascade and is resolved at access, can be forced with resolve and moves ModuleNotFoundError to use time.

AI-written summary · about

  1. 0:00Lazy programming intro
  2. 1:08Three virtues of lazy
  3. 2:55Live coding self-documenting
  4. 8:32Python 2 vs 3 lazy eval
  5. 12:51Startup latency with lazy imports
  6. 17:33Python 3.15 lazy keyword
  7. 21:21Soft keywords and mechanics
  8. 24:58Lazy imports pitfalls & benefits
  9. 27:15Summary of lazy techniques
  10. 29:01Closing remarks
~/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.