~/talk

Conquer multithreaded Python with Blanket

Talkat PyCon US 2026 · 2026-05-13..05-19· [testing]
links:none on file
slides:none on file

Blanket claims deterministic control of multithreaded Python by replacing thread primitives with wrappers rooted in a scenario object that serializes and orders operations. Tests drive explicit transaction/parking states so a race that occurs only in ABC order can be replayed as ABC every run (example: BAC/CAB becomes stable). Implementation uses real locks underneath, offers module monkey‑patching and an injector for bytecode to make lockless code reproducible, and targets unit testing rather than production.

AI-written summary · about

  1. 0:00Multithreading challenges in Python
  2. 1:53What is Blanket
  3. 3:18Threading module limitations
  4. 5:43Rewriting tests with Blanket
  5. 8:50Blanket's scenario object
  6. 11:17Blanket's transaction concept
  7. 15:24How scenario.wait works
  8. 19:55Blanket low-level API
  9. 23:23Blanket medium-level API
  10. 26:34Blanket high-level APIs
  11. 31:03Blanket architecture
  12. 34:32Blanket testing approach
  13. 36:58Blanket development journey
  14. 38:20Performance and Q&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.