Python Bytes - #444 Begone Python of Yore!

Topics covered in this episode:
Watch on YouTube

About the show

Sponsored by DigitalOcean: pythonbytes.fm/digitalocean-gen-ai Use code DO4BYTES and get $200 in free credit

Connect with the hosts

Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Monday at 10am PT. Older video versions available there too.

Finally, if you want an artisanal, hand-crafted digest of every week of the show notes in email form? Add your name and email to our friends of the show list, we'll never share it.

Brian #1: Coverage.py regex pragmas

  • Ned Batchelder

  • The regex implementation of how coverage.py recognizes pragmas is pretty amazing.

  • It’s extensible through plugins

    • covdefaults adds a bunch of default exclusions, and also platform- and version-specific comment syntaxes.
    • coverage-conditional-plugin gives you a way to create comment syntaxes for entire files, for whether other packages are installed, and so on.
  • A change from last year (as part of coverage.py 7.6 allows multiline regexes, which let’s us do things like:

    • Exclude an entire file with \\A(?s:.*# pragma: exclude file.*)\\Z
    • Allow start and stop delimiters with # no cover: start(?s:.*?)# no cover: stop
    • Exclude empty placeholder methods with ^\\s*(((async )?def .*?)?\\)(\\s*->.*?)?:\\s*)?\\.\\.\\.\\s*(#|$)
    • See Ned’s article for explanations of these

Michael #2: Python of Yore

  • via Matthias
  • Use YORE: ... comments to highlight CPython version dependencies.
    # YORE: EOL 3.8: Replace block with line 4.
    if sys.version_info < (3, 9):
    from astunparse import unparse
    else:
    from ast import unparse
    

Then check when they go out of support:

$ yore check --eol-within '5 months'
./src/griffe/agents/nodes/_values.py:11: Python 3.8 will reach its End of Life within approx. 4 months

Even fix them with fix .

Michael #3: nox-uv

  • via John Hagen
  • What nox-uv does is make it very simple to install uv extras and/or dependency groups into a nox session's virtual environment.
  • The versions installed are constrained by uv's lockfile meaning that everything is deterministic and pinned.
  • Dependency groups make it very easy to install only want is necessary for a session (e.g., only linting dependencies like Ruff, or main dependencies + mypy for type checking).

Brian #4: A couple Django items

  • Stop Using Django's squashmigrations: There's a Better Way
    • Johnny Metz
    • Resetting migrations is sometimes the right thing.
    • Overly simplified summary: delete migrations and start over
  • dj-lite
    • Adam Hill
    • Use SQLite in production with Django
    • “Simplify deploying and maintaining production Django websites by using SQLite in production. dj-lite helps enable the best performance for SQLite for small to medium-sized projects. It requires Django 5.1+.”

Extras

Brian:

  • Test & Code 237: FastAPI Cloud with Sebastian Ramirez
    • will be out later today
  • pythontest.com: pytest fixtures nuts and bolts - revisited
    • A blog series that I wrote a long time ago.
    • I’ve updated it into more managable bite-sized pieces, updated and tested with Python 3.13 and pytest 8

Michael:

Joke: Copy/Paste

Talk Python To Me - #515: Durable Python Execution with Temporal

What if your code was crash-proof? That's the value prop for a framework called Temporal. Temporal is a durable execution platform that enables developers to build scalable applications without sacrificing productivity or reliability. The Temporal server executes units of application logic called Workflows in a resilient manner that automatically handles intermittent failures, and retries failed operations. We have Mason Egger from Temporal on to dive into durable execution.

Episode sponsors

Posit
PyBay
Talk Python Courses

Just Enough Python for Data Scientists Course: talkpython.fm

Temporal Durable Execution Platform: temporal.io
Temporal Learn Portal: learn.temporal.io
Temporal GitHub Repository: github.com
Temporal Python SDK GitHub Repository: github.com
What Is Durable Execution, Temporal Blog: temporal.io
Mason on Bluesky Profile: bsky.app
Mason on Mastodon Profile: fosstodon.org
Mason on Twitter Profile: twitter.com
Mason on LinkedIn Profile: linkedin.com
X Post by @skirano: x.com
Temporal Docker Compose GitHub Repository: github.com
Building a distributed asyncio event loop (Chad Retz) - PyTexas 2025: youtube.com
Watch this episode on YouTube: youtube.com
Episode #515 deep-dive: talkpython.fm/515
Episode transcripts: talkpython.fm
Developer Rap Theme Song: Served in a Flask: talkpython.fm/flasksong

--- Stay in touch with us ---
Subscribe to Talk Python on YouTube: youtube.com
Talk Python on Bluesky: @talkpython.fm at bsky.app
Talk Python on Mastodon: talkpython
Michael on Bluesky: @mkennedy.codes at bsky.app
Michael on Mastodon: mkennedy

Big Technology Podcast - Does GPT-5 Live Up To the Hype?, AGI Wait Continues, Self-Loathing Gemini

Ranjan Roy from Margins is back for our weekly discussion of the latest tech news. We cover: 1) OpenAI's launch of GPT-5 2) Whether GPT-5's tool calling ability is its hidden strength 3) GPT-5 is good at 'doing stuff' 4) But GPT-5 is not AGI 5) Do AI models need more than book smarts to thrive? 6) OpenAI's medicine play 7) GPT-5's coding use case 8) We need AI tables for travel 9) Do the big model players now subsume AI startups? 10) Gemini has a breakdown

---

Enjoying Big Technology Podcast? Please rate us five stars ⭐⭐⭐⭐⭐ in your podcast app of choice.

Want a discount for Big Technology on Substack + Discord? Here’s 25% off for the first year: https://www.bigtechnology.com/subscribe?coupon=0843016b

Questions? Feedback? Write to: bigtechnologypodcast@gmail.com

The Stack Overflow Podcast - Python: Come for the language, stay for the community

Ryan welcomes Paul Everitt, developer advocate at JetBrains and an early adopter of Python, to discuss the history, growth, and future of Python. They cover Python’s pivotal moments and rise alongside the internet, the increased adoption from transitions like Python 2 to Python 3, and the significant role Python plays in academia and data science today. 

Episode notes: 

JetBrains is improving the developer experience through a rich suite of tools. 

Connect with Paul on LinkedIn and X.

Python is the fourth most-popular language in our 2025 Developer Survey. 

From the archives: Why is the migration to Python 3 taking so long? 

Today we’re shouting out a popular Python question, Fastest way to find the least amount of subsets that sum up to the total set in Python, asked by user Shaun Han

See Privacy Policy at https://art19.com/privacy and California Privacy Notice at https://art19.com/privacy#do-not-sell-my-info.

Big Technology Podcast - OpenAI COO Brad Lightcap: GPT-5’s Capabilities, Why It Matters, and Where AI Goes Next

Brad Lightcap is the Chief Operating Officer of OpenAI. Lightcap joins Big Technology to discuss the launch of GPT-5, how it works, what sets it apart from previous models, and whether it's AGI. We also cover scaling laws, post-training breakthroughs, enterprise adoption, health care applications, pricing strategy, and the company’s profitability outlook. Hit play for a front-row seat to OpenAI’s thinking on the future of AI.

---

Enjoying Big Technology Podcast? Please rate us five stars ⭐⭐⭐⭐⭐ in your podcast app of choice.

Want a discount for Big Technology on Substack + Discord? Here’s 25% off for the first year: https://www.bigtechnology.com/subscribe?coupon=0843016b

Questions? Feedback? Write to: bigtechnologypodcast@gmail.com

Code Story: Insights from Startup Tech Leaders - S11 Bonus: Trevor Stuart, Split & Harness

Trevor Stuart was born in Florida, but raised in Seattle. He was the son of a tech CFO and an Episcopalian minister - so he learned life at many different angles. He graduated from Boston College, and went into investment banking at Morgan Stanley. Beyond that, he worked at RelateIQ prior to being acquired by Salesforce, which then led him to start his own thing. Outside of tech, he's married and expecting his first child soon. He lives in Sonoma, and loves wine - which type depends on his mood and the time of year.

At RelateIQ, Trevor and his team had a core problem - pushing more code, and looking to move faster, but limiting the amount of quality issues. His co-founder built the early workings of a system he had seen at LinkedIn, around gate keeping features. Eventually, post acquisition of this company, they decided to start building this solution on their own... which led them toward their own acquisition.

This is the creation story of Split andHarness.

Sponsors

Links



Support this podcast at — https://redcircle.com/code-story/donations

Advertising Inquiries: https://redcircle.com/brands

Privacy & Opt-Out: https://redcircle.com/privacy

Big Technology Podcast - Vibe Coding: Everything You Need To Know — With Amjad Masad

Amjad Masad is the CEO of Replit. Masad joins Big Technology podcast for a frank discussion about vibe coding, or building software via prompt. We discuss all the use cases, whether anyone can do it or whether it's just a tool for already-technical builders, whether vibe coding replaces saas, and what the role of the engineer becomes in the future. Stay tuned for the second half where we discuss whether the AI coding business is sustainable given the costs of delivering the technology.


---

Enjoying Big Technology Podcast? Please rate us five stars ⭐⭐⭐⭐⭐ in your podcast app of choice.

Want a discount for Big Technology on Substack + Discord? Here’s 25% off for the first year: https://www.bigtechnology.com/subscribe?coupon=0843016b

Questions? Feedback? Write to: bigtechnologypodcast@gmail.com

The Government Huddle with Brian Chidester - 191: The One with the 2025 Adobe Digital Government Index (DGI)

Amita Prabhu, Amber Lao, and Kaila Cage from Adobe’s Public Sector Digital Strategy Group join the show unpack the inspiration, methodology, and key findings of the report, which benchmarks digital maturity across U.S. state governments. Together we discuss the origins of the DGI and how it evolved from a side project into a strategic benchmarking tool and why the three pillars of digital maturity – customer experience, site performance, and digital self-service – are so vital to digital government maturity. We also discuss why citizen expectations are outpacing government digital improvements—and what states can do about it and the growing influence of AI and ML in service delivery—from chatbots to fraud detection.

array(3) { [0]=> string(69) "https://mcdn.podbean.com/mf/web/fw4acgm25252zhi2/DGI_Podcastbk34n.m4a" [1]=> string(0) "" [2]=> string(8) "33772830" }

Code Story: Insights from Startup Tech Leaders - S11 E11: Dave Berner, Kinde

Dave Berner grew up in London, and got into coding through music. He used to be the lead singer in metal and hardcore bands. His bands couldn't afford a webmaster, so he learned how to code in order to launch his band's website, along with setting up friend's custom MySpace profiles. Beyond that, he partook in many startups and side projects, loving to build on the internet. Outside of tech, he's married with 3 kids. He mentions his family is a "low tech" family, teaching their kids fundamental education without a screen. The live in Australia, in a sleepy surfer town, though he admits he hasn't learned to surf just yet.

Dave has always been building side hustles, but none of them really got off the ground. What he noticed about the process was that the process of building the infra of an app - the auth, the billing, support, etc. - always took too long. Eventually, he thought that maybe the best product would be something combining these things.

This is the creation story of Kinde.

Sponsors

Links



Support this podcast at — https://redcircle.com/code-story/donations

Advertising Inquiries: https://redcircle.com/brands

Privacy & Opt-Out: https://redcircle.com/privacy

The Stack Overflow Podcast - Being unambiguous in what you want: the software engineer in a vibe coding world

Quinn Slack, CEO and co-founder of Sourcegraph, joins the show to dive into the implications of AI coding tools on the software engineering lifecycle. They explore how AI tools are transforming the work of developers from syntax-focused tasks to higher-level design and management roles, and how AI will integrate into enterprise environments. 

Episode notes:

Sourcegraph is building AI-code agents for enterprises to accelerate how companies build software.

Connect with Quinn on LinkedIn, X, and on his website

Today’s shoutout is for user sumek, who won a Populist badge for answering the question How do you search through Vim's command history?.

See Privacy Policy at https://art19.com/privacy and California Privacy Notice at https://art19.com/privacy#do-not-sell-my-info.