{"version":"https://jsonfeed.org/version/1.1","title":"Bernát Gábor — Python packaging, tox, virtualenv \u0026 open source","home_page_url":"https://bernat.tech/","feed_url":"https://bernat.tech/index.json","description":"Engineering notes from Bernát Gábor, PyPA maintainer of tox, virtualenv, pipx, filelock and platformdirs: Python packaging, typing and supply chain security.","authors":[{"name":"Bernát Gábor"}],"language":"en-US","items":[{"id":"https://bernat.tech/posts/pybeach-2026-recap/","url":"https://bernat.tech/posts/pybeach-2026-recap/","title":"PyBeach 2026 Recap","summary":"PyBeach is the Los Angeles area’s community Python conference. The 2026 edition was a single-track, single-day event on Saturday, October 24, at the Illusion Magic Lounge in Santa Monica: eight talks and a block of lightning talks. This post is a synthesis of my notes and the messages I heard during the conference.\nTLDR:\nHumans fail in predictable ways, so design for it. Noah Kantrowitz argued for checklists, objective tooling, and honest limits on what code review can catch. Andrew Godwin brought the same lesson from mountain rescue: practice the response before you need it, keep spare capacity in the schedule, and let anyone call stop. Removing the GIL has a price. Christopher Neugebauer benchmarked sub-interpreters and the free-threaded build on ordinary Python code. Free-threading made shared-data workloads slower; isolating data between workers is what made things fast. Your readers increasingly arrive through an LLM. Maggie Fero showed how chunking, recency weighting, and reversed negations change what users get from your docs, and what to write differently. You can use classes without most of their machinery. Trey Hunner walked through descriptors, metaclasses, and super(), starting from the point that you don’t need most of it to use classes. Python keeps reaching new places. Andrew Annex ran NASA’s SPICE toolkit live in the slides through Pyodide. Elizabeth Bacon covered where Python sits in K–12 classrooms under the new CSTA standards. The supply chain is still the attack surface. My talk walked through nine findings from virtualenv’s own code and release pipeline, against the March 2026 Trivy/LiteLLM and April 2026 Elementary incidents. Morning Link to heading Christopher Neugebauer: Adventures in GIL-Free Python (finally!) Link to heading Christopher kicked off the day. He’s a former PSF director and vice chair, co-organizes North Bay Python , and he last talked about Python concurrency at PyBay 2023, solving Wordle with parallel tools. This was the update, framed around why CPython looks the way it does.\n","content_html":"\u003cp\u003e\u003ca href=\"https://2026.pybeach.org/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ePyBeach\u003c/a\u003e\n is the Los Angeles area\u0026rsquo;s community Python conference. The 2026 edition was a\nsingle-track, single-day event on Saturday, October 24, at the \u003ca href=\"https://illusionmagiclounge.com/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eIllusion Magic Lounge\u003c/a\u003e\n\nin Santa Monica: eight talks and a block of lightning talks. This post is a synthesis of my notes and the messages I\nheard during the conference.\u003c/p\u003e\n\u003cdiv class=\"alert alert-info\"\u003e\n    \u003cp class=\"alert-title\"\u003e\u003ci class=\"fa-solid fa-circle-info\" aria-hidden=\"true\"\u003e\u003c/i\u003e TLDR:\u003c/p\u003e\n    \u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eHumans fail in predictable ways, so design for it.\u003c/strong\u003e Noah Kantrowitz argued for checklists, objective tooling, and\nhonest limits on what code review can catch. Andrew Godwin brought the same lesson from mountain rescue: practice\nthe response before you need it, keep spare capacity in the schedule, and let anyone call stop.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eRemoving the GIL has a price.\u003c/strong\u003e Christopher Neugebauer benchmarked sub-interpreters and the free-threaded build on\nordinary Python code. Free-threading made shared-data workloads slower; isolating data between workers is what made\nthings fast.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eYour readers increasingly arrive through an LLM.\u003c/strong\u003e Maggie Fero showed how chunking, recency weighting, and\nreversed negations change what users get from your docs, and what to write differently.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eYou can use classes without most of their machinery.\u003c/strong\u003e Trey Hunner walked through descriptors, metaclasses, and\n\u003ccode\u003esuper()\u003c/code\u003e, starting from the point that you don\u0026rsquo;t need most of it to use classes.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003ePython keeps reaching new places.\u003c/strong\u003e Andrew Annex ran NASA\u0026rsquo;s SPICE toolkit live in the slides through Pyodide.\nElizabeth Bacon covered where Python sits in K–12 classrooms under the new CSTA standards.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eThe supply chain is still the attack surface.\u003c/strong\u003e My talk walked through nine findings from virtualenv\u0026rsquo;s own code\nand release pipeline, against the March 2026 Trivy/LiteLLM and April 2026 Elementary incidents.\u003c/li\u003e\n\u003c/ul\u003e\n  \u003c/div\u003e\u003ch2 id=\"morning\"\u003e\n  Morning\n  \u003ca class=\"heading-link\" href=\"#morning\"\u003e\n    \u003ci class=\"fa-solid fa-link\" aria-hidden=\"true\" title=\"Link to heading\"\u003e\u003c/i\u003e\n    \u003cspan class=\"sr-only\"\u003eLink to heading\u003c/span\u003e\n  \u003c/a\u003e\n\u003c/h2\u003e\n\u003ch3 id=\"christopher-neugebauer-adventures-in-gil-free-python-finally\"\u003e\n  Christopher Neugebauer: Adventures in GIL-Free Python (finally!)\n  \u003ca class=\"heading-link\" href=\"#christopher-neugebauer-adventures-in-gil-free-python-finally\"\u003e\n    \u003ci class=\"fa-solid fa-link\" aria-hidden=\"true\" title=\"Link to heading\"\u003e\u003c/i\u003e\n    \u003cspan class=\"sr-only\"\u003eLink to heading\u003c/span\u003e\n  \u003c/a\u003e\n\u003c/h3\u003e\n\u003cfigure\u003e\n    \u003cimg src=\"/posts/pybeach-2026-recap/christopher-neugebauer-gil-free-python.webp\" alt=\"Christopher Neugebauer at the podium with his \u0026#39;Adventures in GIL-free Python (finally)\u0026#39; title slide\"\n      srcset=\"/posts/pybeach-2026-recap/christopher-neugebauer-gil-free-python_hu_2cf0e657f2965cc0.webp 500w, /posts/pybeach-2026-recap/christopher-neugebauer-gil-free-python_hu_e8b606ae04c36f0d.webp 800w, /posts/pybeach-2026-recap/christopher-neugebauer-gil-free-python.webp 1024w\" sizes=\"min(1024px, 100vw)\"\n      width=\"1024\" height=\"768\"\n      loading=\"lazy\" decoding=\"async\"\u003e\n\u003c/figure\u003e\n\n\u003cp\u003eChristopher kicked off the day. He\u0026rsquo;s a former \u003ca href=\"https://www.python.org/psf/board/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ePSF\u003c/a\u003e\n director and vice chair,\nco-organizes \u003ca href=\"https://northbaypython.org/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eNorth Bay Python\u003c/a\u003e\n, and he last talked about Python concurrency at\n\u003ca href=\"https://pybay.org/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ePyBay\u003c/a\u003e\n 2023, solving \u003ca href=\"https://www.nytimes.com/games/wordle/index.html\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eWordle\u003c/a\u003e\n with parallel tools.\nThis was the update, framed around \u003cem\u003ewhy\u003c/em\u003e CPython looks the way it does.\u003c/p\u003e","date_published":"2026-10-26T22:00:00Z","date_modified":"2026-10-26T23:18:10-07:00","tags":["python","pybeach","conference","los-angeles","free-threading","subinterpreters","descriptors","metaclasses","spiceypy","pyodide","supply-chain","security","code-review","incident-response","documentation","llm","education"]},{"id":"https://bernat.tech/posts/blazing-fast-html-parser/","url":"https://bernat.tech/posts/blazing-fast-html-parser/","title":"How turbohtml makes Python HTML work 3-22x faster","summary":"Python’s html.escape can scan one string five times. Moving those loops into C removes the interpreter from the hot path, which explains part of a 22x result on prose. Most prose contains nothing to escape. turbohtml gets the rest of the speedup by proving that sixteen bytes need no work, then moving past them in one step.\nI began with a small accelerator for html.escape and html.unescape . The Python implementation of escape runs up to five str.replace passes. unescape runs a regular expression and calls back into Python for each match in the 2,231-entry HTML5 entity table. html.parser.HTMLParser calls unescape for each text run it encounters, so both functions sit on hot paths. Interpreter dispatch explains the standard-library gap; its authors made reasonable choices under different maintenance constraints.\n","content_html":"\u003cp\u003ePython\u0026rsquo;s \u003ccode\u003ehtml.escape\u003c/code\u003e can scan one string five times. Moving those loops into C removes the interpreter from the hot\npath, which explains part of a 22x result on prose. Most prose contains nothing to escape. turbohtml gets the rest of\nthe speedup by proving that sixteen bytes need no work, then moving past them in one step.\u003c/p\u003e\n\u003cp\u003eI began with a small accelerator for \u003ca href=\"https://docs.python.org/3/library/html.html#html.escape\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003ccode\u003ehtml.escape\u003c/code\u003e\u003c/a\u003e\n and\n\u003ca href=\"https://docs.python.org/3/library/html.html#html.unescape\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003ccode\u003ehtml.unescape\u003c/code\u003e\u003c/a\u003e\n. The Python implementation of \u003ccode\u003eescape\u003c/code\u003e runs\nup to five \u003ccode\u003estr.replace\u003c/code\u003e passes. \u003ccode\u003eunescape\u003c/code\u003e runs a regular expression and calls back into Python for each match in the\n2,231-entry HTML5 entity table. \u003ccode\u003ehtml.parser.HTMLParser\u003c/code\u003e calls \u003ccode\u003eunescape\u003c/code\u003e for each text run it encounters, so both\nfunctions sit on hot paths. Interpreter dispatch explains the standard-library gap; its authors made reasonable choices\nunder different maintenance constraints.\u003c/p\u003e","date_published":"2026-06-18T09:00:00Z","date_modified":"2026-10-07T22:41:30-07:00","tags":["python","c","performance","simd","html","parser","tokenizer","unicode","turbohtml","idna","pgo","lto","benchmarking"]},{"id":"https://bernat.tech/posts/blanket-deterministic-threading/","url":"https://bernat.tech/posts/blanket-deterministic-threading/","title":"Deterministic Multithreaded Testing in Python with blanket","summary":" TLDR:\nThe problem : testing multithreaded code is hard because the OS scheduler decides which thread runs when, making race conditions all but impossible to reproduce in a test suite. The solution : blanket wraps real threading primitives (Lock, Condition, Event, Barrier, Semaphore) and lets your test act as the scheduler, controlling which thread proceeds at each step. Why now : free-threaded Python (no GIL ) shipped as an experimental build in 3.13, is officially supported in 3.14 , and keeps maturing in 3.15 . The GIL was hiding thread-safety bugs you did not know you had; without it, they surface. How it works : every method call on a blanket primitive becomes a transaction that parks at a scheduler block. Your test unblocks transactions in whatever order you want, making execution 100% deterministic. What makes it different : unlike stateless model checkers (Loom , Shuttle , CHESS ) that discover bugs by exploring interleavings, blanket lets you declare specific scenarios by hand, useful for regression tests of known bugs and for full coverage of rare code paths. Most multithreaded Python codebases keep at least one test marked @pytest.mark.flaky(reruns=5): the one that fails once in a thousand because of a race condition you cannot reproduce on demand. The bug is a specific sequence of thread interactions. You do not get to pick the sequence; the OS scheduler does. You ship the retry and hope.\n","content_html":"\u003cdiv class=\"alert alert-info\"\u003e\n    \u003cp class=\"alert-title\"\u003e\u003ci class=\"fa-solid fa-circle-info\" aria-hidden=\"true\"\u003e\u003c/i\u003e TLDR:\u003c/p\u003e\n    \u003cul\u003e\n\u003cli\u003e\u003ca href=\"#why-multithreaded-python-tests-are-flaky\"\u003e\u003cstrong\u003eThe problem\u003c/strong\u003e\u003c/a\u003e\n: testing multithreaded code is hard because the OS\nscheduler decides which thread runs when, making race conditions all but impossible to reproduce in a test suite.\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#enter-blanket-deterministic-threading-control\"\u003e\u003cstrong\u003eThe solution\u003c/strong\u003e\u003c/a\u003e\n: \u003ca href=\"https://pypi.org/project/blanket/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eblanket\u003c/a\u003e\n\nwraps real \u003ccode\u003ethreading\u003c/code\u003e primitives (Lock, Condition, Event, Barrier, Semaphore) and lets your test act as the\nscheduler, controlling which thread proceeds at each step.\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#why-now\"\u003e\u003cstrong\u003eWhy now\u003c/strong\u003e\u003c/a\u003e\n: free-threaded Python (no \u003ca href=\"https://docs.python.org/3/glossary.html#term-GIL\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eGIL\u003c/a\u003e\n) shipped\nas an experimental build in 3.13, is\n\u003ca href=\"https://docs.python.org/3.14/whatsnew/3.14.html\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eofficially supported in 3.14\u003c/a\u003e\n, and keeps maturing in\n\u003ca href=\"https://docs.python.org/3.15/whatsnew/3.15.html\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e3.15\u003c/a\u003e\n. The GIL was hiding thread-safety bugs you did not know you\nhad; without it, they surface.\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#how-it-works-under-the-hood\"\u003e\u003cstrong\u003eHow it works\u003c/strong\u003e\u003c/a\u003e\n: every method call on a blanket primitive becomes a \u003cem\u003etransaction\u003c/em\u003e\nthat parks at a \u003cem\u003escheduler block\u003c/em\u003e. Your test unblocks transactions in whatever order you want, making execution 100%\ndeterministic.\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"#concurrency-testing-tools-compared\"\u003e\u003cstrong\u003eWhat makes it different\u003c/strong\u003e\u003c/a\u003e\n: unlike stateless model checkers\n(\u003ca href=\"https://github.com/tokio-rs/loom\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eLoom\u003c/a\u003e\n, \u003ca href=\"https://github.com/awslabs/shuttle\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eShuttle\u003c/a\u003e\n,\n\u003ca href=\"https://www.microsoft.com/en-us/research/project/chess-find-and-reproduce-heisenbugs-in-concurrent-programs/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eCHESS\u003c/a\u003e\n)\nthat \u003cem\u003ediscover\u003c/em\u003e bugs by exploring interleavings, blanket lets you \u003cem\u003edeclare\u003c/em\u003e specific scenarios by hand, useful for\nregression tests of known bugs and for full coverage of rare code paths.\u003c/li\u003e\n\u003c/ul\u003e\n  \u003c/div\u003e\u003cp\u003eMost multithreaded Python codebases keep at least one test marked \u003ccode\u003e@pytest.mark.flaky(reruns=5)\u003c/code\u003e: the one that fails\nonce in a thousand because of a race condition you cannot reproduce on demand. The bug is a specific sequence of thread\ninteractions. You do not get to pick the sequence; the OS scheduler does. You ship the retry and hope.\u003c/p\u003e","date_published":"2026-05-28T17:57:48Z","date_modified":"2026-10-07T22:41:30-07:00","tags":["python","testing","concurrency","threading","free-threading","blanket","pycon","race-condition","gil"]},{"id":"https://bernat.tech/posts/pycon-us-2026-packaging-summit-recap/","url":"https://bernat.tech/posts/pycon-us-2026-packaging-summit-recap/","title":"PyCon US 2026 Packaging Summit Recap","summary":"The PyCon US 2026 Packaging Summit ran Friday May 15, 2026, from 1:45 PM to 5:45 PM in Room 201A of the Long Beach Convention Center. Three talks, nine lightning talks, six roundtable discussions. Organized by Pradyun Gedam , C.A.M. Gerlach , and Jannis Leidel . This recap is for anyone who could not be in the room.\nTLDR:\nEmma Smith’s revised PEP 777 (Wheel 2.0) is a minimal change with sub-PEPs layered on top; the first sub-PEP proposes Zstandard compression for ~25% smaller wheels. Mike Fiedler brought three PyPI abuse vectors (persistent state, open-ended releases, PyPI as a CDN), framed by 3× growth against 1× resources (~24,000 new packages per month, up from ~8,000) and a single full-time PyPI safety and security engineer. Mahe Iram Khan argued conda and pip are two parallel ecosystems, not two competing tools. Lightning talks: PEP 772 Packaging Council approved (Barry Warsaw), mobile wheel pipeline live (Malcolm Smith), Coherent + Compile-to-Flit (Jason Coombs), wheel variants for AI accelerators and shared malware scanning (Joongi Kim), conda-pypi (Daniel Holth), Nebi (Dharhas Pothina). Roundtables: PEP 803 abi3t , Wheel 2.0 hardening, cross-platform builds, CVE propagation, and nab (Damian Shaw’s pure-Python resolver aimed at pip swap-in). Involved in Python packaging? Consider running for the Packaging Council this fall or becoming a voting PSF member to nominate and vote. For background, I list the packaging-topic PEPs resolved in the year leading up to the summit (January 2025 through May 2026), newest first.\n","content_html":"\u003cp\u003eThe \u003ca href=\"https://us.pycon.org/2026/events/packaging-summit/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ePyCon US 2026 Packaging Summit\u003c/a\u003e\n ran Friday May 15, 2026, from\n1:45 PM to 5:45 PM in Room 201A of the Long Beach Convention Center. Three talks, nine lightning talks, six roundtable\ndiscussions. Organized by \u003ca href=\"https://pradyunsg.me/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ePradyun Gedam\u003c/a\u003e\n, \u003ca href=\"https://github.com/CAM-Gerlach\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eC.A.M. Gerlach\u003c/a\u003e\n, and\n\u003ca href=\"https://github.com/jezdez\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eJannis Leidel\u003c/a\u003e\n. This recap is for anyone who could not be in the room.\u003c/p\u003e\n\u003cdiv class=\"alert alert-info\"\u003e\n    \u003cp class=\"alert-title\"\u003e\u003ci class=\"fa-solid fa-circle-info\" aria-hidden=\"true\"\u003e\u003c/i\u003e TLDR:\u003c/p\u003e\n    \u003cul\u003e\n\u003cli\u003eEmma Smith\u0026rsquo;s revised \u003ca href=\"https://peps.python.org/pep-0777/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ePEP 777 (Wheel 2.0)\u003c/a\u003e\n is a minimal change with sub-PEPs\nlayered on top; the first sub-PEP proposes Zstandard compression for ~25% smaller wheels.\u003c/li\u003e\n\u003cli\u003eMike Fiedler brought three PyPI abuse vectors (persistent state, open-ended releases, PyPI as a CDN), framed by 3×\ngrowth against 1× resources (~24,000 new packages per month, up from ~8,000) and a single full-time PyPI safety and\nsecurity engineer.\u003c/li\u003e\n\u003cli\u003eMahe Iram Khan argued conda and pip are two parallel ecosystems, not two competing tools.\u003c/li\u003e\n\u003cli\u003eLightning talks: \u003ca href=\"https://peps.python.org/pep-0772/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ePEP 772 Packaging Council\u003c/a\u003e\n approved (Barry Warsaw), mobile\nwheel pipeline live (Malcolm Smith), Coherent + Compile-to-Flit (Jason Coombs), wheel variants for AI accelerators\nand shared malware scanning (Joongi Kim), conda-pypi (Daniel Holth), Nebi (Dharhas Pothina).\u003c/li\u003e\n\u003cli\u003eRoundtables: \u003ca href=\"https://peps.python.org/pep-0803/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ePEP 803 abi3t\u003c/a\u003e\n, Wheel 2.0 hardening, cross-platform builds, CVE\npropagation, and \u003ca href=\"https://github.com/notatallshaw/nab\" target=\"_blank\" rel=\"noopener noreferrer\"\u003enab\u003c/a\u003e\n (Damian Shaw\u0026rsquo;s pure-Python resolver aimed at pip\nswap-in).\u003c/li\u003e\n\u003cli\u003eInvolved in Python packaging? Consider running for the Packaging Council this fall or becoming a voting\n\u003ca href=\"https://www.python.org/psf/membership/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ePSF member\u003c/a\u003e\n to nominate and vote.\u003c/li\u003e\n\u003c/ul\u003e\n  \u003c/div\u003e\u003cp\u003eFor background, I list the packaging-topic PEPs resolved in the year leading up to the summit (January 2025 through May\n2026), newest first.\u003c/p\u003e","date_published":"2026-05-15T23:00:00Z","date_modified":"2026-10-07T22:48:56-07:00","tags":["python","pycon","pycon-us","packaging-summit","packaging","pypi","wheel","pep-777","pep-694","pep-772","pep-817","pep-825","pep-803","conda","trusted-publishing","supply-chain","mobile","beeware","wheel-variants"]},{"id":"https://bernat.tech/posts/pycon-us-2026-typing-summit-recap/","url":"https://bernat.tech/posts/pycon-us-2026-typing-summit-recap/","title":"PyCon US 2026 Typing Summit Recap","summary":"The PyCon US 2026 Typing Summit ran Thursday May 14, 2026, from 1 PM to 5 PM in Room 201A of the Long Beach Convention Center, the day before the main conference started. Eight talks plus a Typing Council Q\u0026A, single track. This recap is for anyone who could not be in the room.\nTLDR:\nGuido van Rossum argued that PEP 484 ’s no-new-syntax rule is already broken in practice and that the field should weigh user pain over power features, citing the 2025 Python Typing Survey . Jelle Zijlstra proposed adding intersection and restricted-negation types to the typing spec, with an inhabitation check as the load-bearing new rule. Michael Sullivan presented PEP 827 (Vercel) for type manipulation, modelled on TypeScript’s conditional and mapped types. Douglas Creager showed how ty represents generic-call constraints internally with ternary decision diagrams, and a third solver strategy that fixes a 9-line partial(choose, None) example every production checker today gets wrong. Conner Nilsen presented a Pyrefly experiment with AI coding agents: type checking moves success on well-typed Meta code from 79.6% to 83.9% with 21% fewer steps; no measurable help on lightly-typed SWE-bench Verified. Avik Chaudhuri demoed tensor-shape types in Pyrefly, blocked in practice by PEP 695 ’s eager evaluation of type parameters. Jia Chen presented a Lean 4 formalization (Featherweight Python) with mechanized soundness and decidability proofs; AI assistants turned what used to take years into weeks. The Typing Council panel (Carl Meyer, Jelle Zijlstra, Rebecca Chen on stage) opened the floor to attendee questions on governance, error-code consistency, metaprogramming, and the spec direction. Experiments with AI agents and Pyrefly type errors — Conner Nilsen Link to heading Conner (Meta, Pyrefly team) presented two questions: (1) does giving an AI coding agent a type checker help it finish tasks, and (2) does it prevent the agent from re-introducing old bugs while fixing new ones? His team ran two benchmarks with and without type-checker feedback and tracked three metrics: success rate, number of steps to completion, and wall-clock duration.\n","content_html":"\u003cp\u003eThe \u003ca href=\"https://us.pycon.org/2026/events/typing-summit/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ePyCon US 2026 Typing Summit\u003c/a\u003e\n ran Thursday May 14, 2026, from 1 PM\nto 5 PM in Room 201A of the Long Beach Convention Center, the day before the main conference started. Eight talks plus a\nTyping Council Q\u0026amp;A, single track. This recap is for anyone who could not be in the room.\u003c/p\u003e\n\u003cdiv class=\"alert alert-info\"\u003e\n    \u003cp class=\"alert-title\"\u003e\u003ci class=\"fa-solid fa-circle-info\" aria-hidden=\"true\"\u003e\u003c/i\u003e TLDR:\u003c/p\u003e\n    \u003cul\u003e\n\u003cli\u003eGuido van Rossum argued that \u003ca href=\"https://peps.python.org/pep-0484/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ePEP 484\u003c/a\u003e\n\u0026rsquo;s no-new-syntax rule is already broken in\npractice and that the field should weigh user pain over power features, citing the\n\u003ca href=\"https://engineering.fb.com/2025/12/22/developer-tools/python-typing-survey-2025-code-quality-flexibility-typing-adoption/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e2025 Python Typing Survey\u003c/a\u003e\n.\u003c/li\u003e\n\u003cli\u003eJelle Zijlstra proposed adding intersection and restricted-negation types to the typing spec, with an inhabitation\ncheck as the load-bearing new rule.\u003c/li\u003e\n\u003cli\u003eMichael Sullivan presented \u003ca href=\"https://peps.python.org/pep-0827/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ePEP 827\u003c/a\u003e\n (Vercel) for type manipulation, modelled on\nTypeScript\u0026rsquo;s conditional and mapped types.\u003c/li\u003e\n\u003cli\u003eDouglas Creager showed how \u003ccode\u003ety\u003c/code\u003e represents generic-call constraints internally with ternary decision diagrams, and a\nthird solver strategy that fixes a 9-line \u003ccode\u003epartial(choose, None)\u003c/code\u003e example every production checker today gets wrong.\u003c/li\u003e\n\u003cli\u003eConner Nilsen presented a Pyrefly experiment with AI coding agents: type checking moves success on well-typed Meta\ncode from 79.6% to 83.9% with 21% fewer steps; no measurable help on lightly-typed SWE-bench Verified.\u003c/li\u003e\n\u003cli\u003eAvik Chaudhuri demoed tensor-shape types in Pyrefly, blocked in practice by\n\u003ca href=\"https://peps.python.org/pep-0695/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ePEP 695\u003c/a\u003e\n\u0026rsquo;s eager evaluation of type parameters.\u003c/li\u003e\n\u003cli\u003eJia Chen presented a Lean 4 formalization (Featherweight Python) with mechanized soundness and decidability proofs;\nAI assistants turned what used to take years into weeks.\u003c/li\u003e\n\u003cli\u003eThe Typing Council panel (Carl Meyer, Jelle Zijlstra, Rebecca Chen on stage) opened the floor to attendee questions\non governance, error-code consistency, metaprogramming, and the spec direction.\u003c/li\u003e\n\u003c/ul\u003e\n  \u003c/div\u003e\u003ch2 id=\"experiments-with-ai-agents-and-pyrefly-type-errors--conner-nilsen\"\u003e\n  Experiments with AI agents and Pyrefly type errors — Conner Nilsen\n  \u003ca class=\"heading-link\" href=\"#experiments-with-ai-agents-and-pyrefly-type-errors--conner-nilsen\"\u003e\n    \u003ci class=\"fa-solid fa-link\" aria-hidden=\"true\" title=\"Link to heading\"\u003e\u003c/i\u003e\n    \u003cspan class=\"sr-only\"\u003eLink to heading\u003c/span\u003e\n  \u003c/a\u003e\n\u003c/h2\u003e\n\u003cfigure\u003e\n    \u003cimg src=\"/posts/pycon-us-2026-typing-summit-recap/conner-nilsen-pyrefly-ai-experiments.webp\" alt=\"Conner Nilsen Findings slide on providing feedback to the agent at higher frequencies\"\n      srcset=\"/posts/pycon-us-2026-typing-summit-recap/conner-nilsen-pyrefly-ai-experiments_hu_a4cff857630366fb.webp 500w, /posts/pycon-us-2026-typing-summit-recap/conner-nilsen-pyrefly-ai-experiments_hu_1134013956dc65ba.webp 800w, /posts/pycon-us-2026-typing-summit-recap/conner-nilsen-pyrefly-ai-experiments.webp 1024w\" sizes=\"min(1024px, 100vw)\"\n      width=\"1024\" height=\"768\"\n      loading=\"lazy\" decoding=\"async\"\u003e\n\u003c/figure\u003e\n\n\u003cp\u003eConner (Meta, \u003ca href=\"https://pyrefly.org/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ePyrefly\u003c/a\u003e\n team) presented two questions: (1) does giving an AI coding agent a type\nchecker help it finish tasks, and (2) does it prevent the agent from re-introducing old bugs while fixing new ones? His\nteam ran two benchmarks with and without type-checker feedback and tracked three metrics: success rate, number of steps\nto completion, and wall-clock duration.\u003c/p\u003e","date_published":"2026-05-14T23:30:00Z","date_modified":"2026-10-07T22:48:56-07:00","tags":["python","pycon","pycon-us","typing-summit","typing","type-hints","pyrefly","ty","astral","openai","meta","vercel","pep-827","intersection-types","constraint-sets","lean","tensor-types","pytorch","typing-council","guido"]},{"id":"https://bernat.tech/posts/pytexas-2026-recap/","url":"https://bernat.tech/posts/pytexas-2026-recap/","title":"PyTexas 2026 Recap","summary":"PyTexas is the annual Python conference held in Austin, Texas. The 2026 edition ran April 17–19 at the Austin Central Library in downtown Austin.\nTLDR:\nPyTexas 2026 ran April 17–19 in Austin. Friday was tutorials, Saturday and Sunday were talks with two keynotes and two lightning-talk blocks. A few themes kept coming back across unrelated talks:\nDesign deliberately. A thread across both keynotes. Hynek Schlawack: the domain model is “the precious” - design it first, translate at the edges. Dawn Wages: ownership over your stack as one of her three pillars for model and career specialization. Agents should write code, not decide what to write. Peter Sobot’s Seven Stages of AI Grief ended on that line. Al Sweigart argued “agentic engineering” is vibe coding with better marketing, and that almost-right is worse than wrong. Maria Silvia Mielniczuk’s MCP talk built the same idea into an architecture: models suggest, only the server executes. Adam Gordon Bell’s running coach split deterministic work (plain Python) from interpretation (LLM). The Sunday opener framed it: when AI ships a bad PR, fix the process, not the model. Code quality is an input to AI productivity. Miguel Vargas’s framing: AI agents produce cleaner, safer code in codebases that are already clean, safe, and typed, so Ruff, ty, and uv matter more now. The supply chain is still the attack surface. Christopher Ariza on why pip install still runs arbitrary code, with .pth files, sitecustomize.py, and setup.py as the specific places to pay attention. CPython itself is getting faster. Jacob Coffee on PEP 810 lazy imports for startup wins; Charlie Lin on the free-threaded build and what it takes to make an extension module safe under it. This post details the takeaways from each talk I attended, in schedule order.\n","content_html":"\u003cp\u003e\u003ca href=\"https://www.pytexas.org/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ePyTexas\u003c/a\u003e\n is the annual Python conference held in Austin, Texas. The 2026 edition ran April\n17–19 at the \u003ca href=\"https://library.austintexas.gov/central-library\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eAustin Central Library\u003c/a\u003e\n in downtown Austin.\u003c/p\u003e\n\u003cdiv class=\"alert alert-info\"\u003e\n    \u003cp class=\"alert-title\"\u003e\u003ci class=\"fa-solid fa-circle-info\" aria-hidden=\"true\"\u003e\u003c/i\u003e TLDR:\u003c/p\u003e\n    \u003cp\u003ePyTexas 2026 ran April 17–19 in Austin. Friday was tutorials, Saturday and Sunday were talks with two keynotes and two\nlightning-talk blocks. A few themes kept coming back across unrelated talks:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eDesign deliberately.\u003c/strong\u003e A thread across both keynotes. Hynek Schlawack: the domain model is \u003cem\u003e\u0026ldquo;the precious\u0026rdquo;\u003c/em\u003e -\ndesign it first, translate at the edges. Dawn Wages: ownership over your stack as one of her three pillars for model\nand career specialization.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eAgents should write code, not decide what to write.\u003c/strong\u003e Peter Sobot\u0026rsquo;s Seven Stages of AI Grief ended on that line.\nAl Sweigart argued \u0026ldquo;agentic engineering\u0026rdquo; is vibe coding with better marketing, and that almost-right is worse than\nwrong. Maria Silvia Mielniczuk\u0026rsquo;s MCP talk built the same idea into an architecture: models suggest, only the server\nexecutes. Adam Gordon Bell\u0026rsquo;s running coach split deterministic work (plain Python) from interpretation (LLM). The\nSunday opener framed it: when AI ships a bad PR, fix the process, not the model.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eCode quality is an input to AI productivity.\u003c/strong\u003e Miguel Vargas\u0026rsquo;s framing: AI agents produce cleaner, safer code in\ncodebases that are already clean, safe, and typed, so Ruff, ty, and uv matter more now.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eThe supply chain is still the attack surface.\u003c/strong\u003e Christopher Ariza on why \u003ccode\u003epip install\u003c/code\u003e still runs arbitrary code,\nwith \u003ccode\u003e.pth\u003c/code\u003e files, \u003ccode\u003esitecustomize.py\u003c/code\u003e, and \u003ccode\u003esetup.py\u003c/code\u003e as the specific places to pay attention.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eCPython itself is getting faster.\u003c/strong\u003e Jacob Coffee on \u003ca href=\"https://peps.python.org/pep-0810/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ePEP 810\u003c/a\u003e\n lazy imports for\nstartup wins; Charlie Lin on the free-threaded build and what it takes to make an extension module safe under it.\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eThis post details the takeaways from each talk I attended, in schedule order.\u003c/p\u003e\n  \u003c/div\u003e","date_published":"2026-04-19T22:00:00Z","date_modified":"2026-10-07T22:48:56-07:00","tags":["python","pytexas","conference","austin","ai","llm","mcp","keynote","hynek","packaging","supply-chain","pep-810","free-threading","ruff","uv","ty","type-checking","observability","cli"]},{"id":"https://bernat.tech/posts/securing-python-supply-chain/","url":"https://bernat.tech/posts/securing-python-supply-chain/","title":"Defense in Depth: A Practical Guide to Python Supply Chain Security","summary":" TLDR:\nLayer your defenses and do not trust any single control. Use Ruff with security rules to catch bugs in your code before they ship. Pin all your dependencies with cryptographic hashes using uv lock or uv pip compile --generate-hashes so nobody can swap out packages on you. Run pip-audit in CI to catch known CVEs before they hit production. Generate SBOMs with CycloneDX so when the next Ultralytics-style compromise drops, you can answer “are we affected?” in minutes instead of days.\nIf you are publishing packages, ditch the long-lived API tokens and switch to Trusted Publishing with OIDC. This generates attestations automatically via Sigstore, linking your packages back to source repos. Organizations running internal mirrors can add a 7-day delay to let the community be your canary - but only if you have the infrastructure to maintain it.\nNothing here is perfect. Hash pinning stops tampering but will not save you from a malicious package you installed on day one. Scanning finds known CVEs but misses zero-days. Attestations prove where code came from, not whether it is safe. That is why you layer them - when one control fails, the others catch it. Start with linting and pinning for quick wins, add scanning and SBOMs next, then level up to advanced stuff as you mature.\n","content_html":"\u003cdiv class=\"alert alert-info\"\u003e\n    \u003cp class=\"alert-title\"\u003e\u003ci class=\"fa-solid fa-circle-info\" aria-hidden=\"true\"\u003e\u003c/i\u003e TLDR:\u003c/p\u003e\n    \u003cp\u003eLayer your defenses and do not trust any single control. Use Ruff with security rules to catch bugs in your code\nbefore they ship. Pin all your dependencies with cryptographic hashes using \u003ccode\u003euv lock\u003c/code\u003e or\n\u003ccode\u003euv pip compile --generate-hashes\u003c/code\u003e so nobody can swap out packages on you. Run\n\u003ca href=\"https://github.com/pypa/pip-audit\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003ccode\u003epip-audit\u003c/code\u003e\u003c/a\u003e\n in CI to catch known CVEs before they hit production. Generate SBOMs\nwith CycloneDX so when the next Ultralytics-style compromise drops, you can answer \u0026ldquo;are we affected?\u0026rdquo; in minutes\ninstead of days.\u003c/p\u003e\n\u003cp\u003eIf you are publishing packages, ditch the long-lived API tokens and switch to Trusted Publishing with OIDC. This\ngenerates attestations automatically via Sigstore, linking your packages back to source repos. Organizations running\ninternal mirrors can add a 7-day delay to let the community be your canary - but only if you have the infrastructure\nto maintain it.\u003c/p\u003e\n\u003cp\u003eNothing here is perfect. Hash pinning stops tampering but will not save you from a malicious package you installed on\nday one. Scanning finds known CVEs but misses zero-days. Attestations prove where code came from, not whether it is\nsafe. That is why you layer them - when one control fails, the others catch it. Start with linting and pinning for\nquick wins, add scanning and SBOMs next, then level up to advanced stuff as you mature.\u003c/p\u003e\n  \u003c/div\u003e","date_published":"2026-03-10T00:00:00Z","date_modified":"2026-10-07T22:48:56-07:00","tags":["python","security","dependencies","supply-chain","sbom","pypi","pip"]},{"id":"https://bernat.tech/posts/version-numbers/","url":"https://bernat.tech/posts/version-numbers/","title":"Version numbers: how to use them?","summary":"The DRY principle (an acronym for don’t repeat yourself) encourages software engineers to abstract code into a separate component and reuse it rather than write it over and over again. If this happens across the system, the best practice is to put it inside a package that lives on its own (a library) and then pull it in from the applications when required.\nAs most of us can’t think of every feature that the library might offer or what bugs it might contain, these packages tend to evolve. Therefore, we need some mechanism to encode these evolutions of the library, and most commonly, this is a version number.\n","content_html":"\u003cp\u003eThe \u003ca href=\"https://en.wikipedia.org/wiki/Don%27t_repeat_yourself\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eDRY principle\u003c/a\u003e\n (an acronym for don\u0026rsquo;t repeat yourself)\nencourages software engineers to abstract code into a separate component and reuse it rather than write it over and over\nagain. If this happens across the system, the best practice is to put it inside a package that lives on its own (a\nlibrary) and then pull it in from the applications when required.\u003c/p\u003e\n\u003cp\u003eAs most of us can\u0026rsquo;t think of every feature that the library might offer or what bugs it might contain, these packages\ntend to evolve. Therefore, we need some mechanism to encode these evolutions of the library, and most commonly, this is\na version number.\u003c/p\u003e","date_published":"2020-05-16T14:15:00Z","date_modified":"2026-07-10T18:47:45-07:00","tags":["python","version","semver","calver","0ver"]},{"id":"https://bernat.tech/posts/growing-pain/","url":"https://bernat.tech/posts/growing-pain/","title":"Python packaging - Growing Pains","summary":"In my previous two posts, I’ve gone over what package types python has , and how the package building works , especially with the introduction of the PEP-517/518. Although the changes were meant to make things more robust, we did run into a few issues while implementing and releasing them. The following are a few of those, serving as lessons learned for all of us and presenting some interesting problems to solve in the future.\n","content_html":"\u003cp\u003eIn my previous two posts, I\u0026rsquo;ve gone over \u003ca href=\"/posts/pep-517-and-python-packaging/\"\u003ewhat package types python has\u003c/a\u003e\n, and\n\u003ca href=\"/posts/pep-517-518/\"\u003ehow the package building works\u003c/a\u003e\n, especially with the introduction of the PEP-517/518. Although the\nchanges were meant to make things more robust, we did run into a few issues while implementing and releasing them. The\nfollowing are a few of those, serving as lessons learned for all of us and presenting some interesting problems to solve\nin the future.\u003c/p\u003e","date_published":"2019-02-07T13:41:03Z","date_modified":"2026-10-07T22:40:00-07:00","tags":["python","packaging","pip","setuptools","pep517","pep518"]},{"id":"https://bernat.tech/posts/pep-517-518/","url":"https://bernat.tech/posts/pep-517-518/","title":"Python packaging - Past, Present, Future","summary":"Have you ever wondered what happens when you run pip install? This post gives a detailed overview of the steps involved in the past, and how it all changes with the adoption of PEP-517 and PEP-518.\nIn my previous post I’ve described how it’s possible to install three types of content: source tree, source distribution, and wheels. Only the last two types are uploaded to PyPI, the central Python repository. However, one could get its hands on a source tree (by feeding, for example, a git protocol for pip). The advantage of wheels over the others is that it does not require any build operation to happen on the user machine; it’s a download and extract.\n","content_html":"\u003cp\u003eHave you ever wondered what happens when you run pip install? This post gives a detailed overview of the steps involved\nin the past, and how it all changes with the adoption of PEP-517 and PEP-518.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"/posts/pep-517-and-python-packaging/\"\u003eIn my previous post\u003c/a\u003e\n I\u0026rsquo;ve described how it\u0026rsquo;s possible to install three types of\ncontent: source tree, source distribution, and wheels. Only the last two types are uploaded to PyPI, the central Python\nrepository. However, one could get its hands on a source tree (by feeding, for example, a git protocol for pip). The\nadvantage of wheels over the others is that it does not require any build operation to happen on the user machine; it\u0026rsquo;s\na download and extract.\u003c/p\u003e","date_published":"2019-02-07T13:40:59Z","date_modified":"2026-10-07T22:41:30-07:00","tags":["python","pip","install","packaging","setuptools","pep517","pep518"]},{"id":"https://bernat.tech/posts/pep-517-and-python-packaging/","url":"https://bernat.tech/posts/pep-517-and-python-packaging/","title":"The state of Python Packaging","summary":"pip 19.0 has been released on 22nd January 2019. On the feature list, most notably, it now supports PEP-517, which by default is turned on when that the project has a pyproject.toml at the root folder. The PEP in question has been created in 2015 and accepted in 2017. Even though it took a while until pip implemented it, the release and the issues that followed confirmed that many people are not familiar with it. Read on if you want a picture of how the Python packaging ecosystem evolved today and where we hope to see it down the line. The introduction of this python enhancement proposal may cause some discomfort, but we will benefit from it in the long term.\n","content_html":"\u003cp\u003epip 19.0 has been released on 22nd January 2019. On the feature list, most notably, it now supports PEP-517, which by\ndefault is turned \u003cstrong\u003eon\u003c/strong\u003e when that the project has a \u003ccode\u003epyproject.toml\u003c/code\u003e at the root folder. The PEP in question has been\ncreated in 2015 and accepted in 2017. Even though it took a while until pip implemented it, the release and the issues\nthat followed confirmed that many people are not familiar with it. Read on if you want a picture of how the Python\npackaging ecosystem evolved today and where we hope to see it down the line. The introduction of this python enhancement\nproposal may cause some discomfort, but we will benefit from it in the long term.\u003c/p\u003e","date_published":"2019-02-07T13:40:54Z","date_modified":"2026-10-07T22:40:00-07:00","tags":["python","packaging","pip","setuptools","pep517","pep518","wheel","sdist"]},{"id":"https://bernat.tech/posts/the-state-of-type-hints-in-python/","url":"https://bernat.tech/posts/the-state-of-type-hints-in-python/","title":"The state of type hints in Python","summary":"One of the main selling points for Python is that it is dynamically-typed. There is no plan to change this. Nevertheless, in September 2014 Guido van Rossum (Python BDFL ) created a python enhancement proposal (PEP-484 ) to add type hints to Python. It has been released for general usage a year later, in September 2015, as part of Python 3.5.0. Twenty-five years into its existence now there was a standard way to add type information to Python code. In this blog post, I’ll explore how the system matured, how you can use it, and what’s next for type hints.\n","content_html":"\u003cp\u003eOne of the main selling points for Python is that it is dynamically-typed. There is no plan to change this.\nNevertheless, in September 2014 \u003ca href=\"https://twitter.com/gvanrossum\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eGuido van Rossum\u003c/a\u003e\n (Python\n\u003ca href=\"https://en.wikipedia.org/wiki/Benevolent_dictator_for_life\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eBDFL\u003c/a\u003e\n) created a python enhancement proposal\n(\u003ca href=\"https://peps.python.org/pep-0484/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003ePEP-484\u003c/a\u003e\n) to add type hints to Python. It has been released for general usage a\nyear later, in September 2015, as part of Python \u003ccode\u003e3.5.0\u003c/code\u003e.\n\u003ca href=\"https://python-history.blogspot.com/2009/01/brief-timeline-of-python.html\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eTwenty-five years into its existence\u003c/a\u003e\n now\nthere was a standard way to add type information to Python code. In this blog post, I\u0026rsquo;ll explore how the system matured,\nhow you can use it, and what\u0026rsquo;s next for type hints.\u003c/p\u003e","date_published":"2018-05-30T09:51:55Z","date_modified":"2026-10-07T22:41:30-07:00","tags":["mypy","python","types","type-hint"]}]}