~/talk

"from where?!? import what?!?"

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

Shows how to find which file actually loads when imports misbehave: run python -m site to print sys.path entries, inspect module and module __spec__ to see on-disk origins, and use the CPython import-time timing/verbosity options to list implicit imports and import durations. Demonstrates when isolated mode or virtual environments with system site packages disabled remove surprising search paths, reproduces a real module shadowing bug where a local re.py breaks inspect and how the fix is verified.

AI-written summary · about

  1. 0:00Welcome
  2. 1:10Import system problems
  3. 4:19Understanding sys.path
  4. 10:15Module shadowing
  5. 15:57Virtual environments limits
  6. 18:35Import time side effects
  7. 21:44Verbose import diagnostics
  8. 24:47Exotic import pitfalls
  9. 26:11Startup code side effects
  10. 27:40Deeper exploration
  11. 28:44Q&A
~/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.