Python Bytes - #456 You’re so wrong

Topics covered in this episode:
Watch on YouTube

About the show

Sponsored by us! Support our work through:

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: The PSF has withdrawn a $1.5 million proposal to US government grant program

  • Related post from Simon Willison
  • ARS Technica: Python plan to boost software security foiled by Trump admin’s anti-DEI rules
  • The Register: Python Foundation goes ride or DEI, rejects government grant with strings attached
  • In Jan 2025, the PSF submitted a proposal for a US NSF grant under the Safety, Security, and Privacy of Open Source Ecosystems program. After months of work by the PSF, the proposal was recommended for funding.
  • If the PSF accepted it, however, they would need to agree to the some terms and conditions, including, affirming that the PSF doesn't support diversity. The restriction wouldn't just be around the security work, but around all activity of the PSF as a whole. And further, that any deemed violation would give the NSF the right to ask for the money back.
  • That just won't work, as the PSF would have already spent the money.
  • The PSF mission statement includes "The mission of the Python Software Foundation is to promote, protect, and advance the Python programming language, and to support and facilitate the growth of a diverse and international community of Python programmers." The money would have obviously been very valuable, but the restrictions are just too unacceptable.
  • The PSF withdrew the proposal. This couldn't have been an easy decision, that was a lot of money, but I think the PSF did the right thing.

Michael #2: A Binary Serializer for Pydantic Models

  • 7× Smaller Than JSON
  • A compact binary serializer for Pydantic models that dramatically reduces RAM usage compared to JSON.
  • The library is designed for high-load systems (e.g., Redis caching), where millions of models are stored in memory and every byte matters.
  • It serializes Pydantic models into a minimal binary format and deserializes them back with zero extra metadata overhead.
  • Target Audience: This project is intended for developers working with:
    • high-load APIs
    • in-memory caches (Redis, Memcached)
    • message queues
    • cost-sensitive environments where object size matters

Brian #3: T-strings: Python's Fifth String Formatting Technique?

  • Trey Hunner
  • Python 3.14 has t-strings. How do they fit in with the rest of the string story?
  • History
    • percent-style (%) strings - been around for a very long time
    • string.Template - and t.substitute() - from Python 2.4, but I don’t think I’ve ever used them
    • bracket variables and .format() - Since Python 2.6
    • f-strings - Python 3.6 - Now I feel old. These still seem new to me
    • t-strings - Python 3.14, but a totally different beast. These don’t return strings.
  • Trey then covers a problem with f-strings in that the substitution happens at definition time.
  • t-strings have substitution happen later. this is essentially “lazy string interpolation”
  • This still takes a bit to get your head around, but I appreciate Trey taking a whack at the explanation.

Michael #4: Cronboard

  • Cronboard is a terminal application that allows you to manage and schedule cronjobs on local and remote servers.
  • With Cronboard, you can easily add, edit, and delete cronjobs, as well as view their status.
  • ✨ Features
    • ✔️ Check cron jobs
    • ✔️ Create cron jobs with validation and human-readable feedback
    • ✔️ Pause and resume cron jobs
    • ✔️ Edit existing cron jobs
    • ✔️ Delete cron jobs
    • ✔️ View formatted last and next run times
    • ✔️ Accepts special expressions like @daily, @yearly, @monthly, etc.
    • ✔️ Connect to servers using SSH, using password or SSH keys
    • ✔️ Choose another user to manage cron jobs if you have the permissions to do so (sudo)

Extras

Brian:

Joke: You are so wrong!

Short Wave - Elections: A Big Math Problem

Ahead of Election Day tomorrow, millions of ballots are being cast in statewide, local and special elections. So, today, we're revisiting an episode asking: What would happen if the rules of our electoral system were changed? Producer Hannah Chinn reported on that very question, and today, with host Emily Kwong, they dive into three voting methods that are representative of alternative voting systems. They look at where these systems have been implemented, how they work and what they may mean for future elections. 

Want to hear more about how math could change our lives? Email us at shortwave@npr.org and we might cover your idea on a future episode! 

Listen to every episode of Short Wave sponsor-free and support our work at NPR by signing up for Short Wave+ at plus.npr.org/shortwave.

Learn more about sponsor message choices: podcastchoices.com/adchoices

NPR Privacy Policy

What Next | Daily News and Analysis - The Redistricting Arms Race Is On

Fearing a Democratic-led House of Representatives, Donald Trump set off a state-redistricting arms race when he asked Texas to find him five more safe GOP seats. This triggered California to go hunting for five more Democratic seats, and states like North Carolina and Missouri to search for other seats in the margins. But in some states, Trump’s demands are running into rare Republican resistance.

Guest: Ari Berman, voting rights reporter at Mother Jones. 

Want more What Next? Subscribe to Slate Plus to access ad-free listening to the whole What Next family and across all your favorite Slate podcasts. Subscribe today on Apple Podcasts by clicking “Try Free” at the top of our show page. Sign up now at slate.com/whatnextplus to get access wherever you listen.

Podcast production by Elena Schwartz, Paige Osburn, Anna Phillips, Madeline Ducharme, and Rob Gunther.


Learn more about your ad choices. Visit megaphone.fm/adchoices

NPR's Book of the Day - Karine Jean-Pierre’s new memoir ‘Independent’ explains why she left the Democrats

For almost three years, Karine Jean-Pierre was White House press secretary for the Biden-Harris administration. Her new memoir, Independent, explains her recent decision to leave the Democratic Party and identify as an independent. In today’s episode, Jean-Pierre joins NPR’s Michel Martin for a conversation about Democratic disunity, former President Biden’s health, and why she says her former party has failed Black women.


To listen to Book of the Day sponsor-free and support NPR's book coverage, sign up for Book of the Day+ at plus.npr.org/bookoftheday

Learn more about sponsor message choices: podcastchoices.com/adchoices

NPR Privacy Policy

Global News Podcast - Trump’s military action threat alarms Nigeria

Donald Trump has suggested the US could deploy troops to Nigeria or carry out air strikes to stop what he called the killing of Christians by Islamist insurgents. Unfounded claims of a Christian genocide in Nigeria have been circulating in American right-wing religious circles for months. A Nigerian presidential adviser said jihadists in the Muslim-majority north of the country were attacking all religious communities, but that Abuja would welcome US help in tackling the Islamist insurgents.

Also: the sole survivor of the Air India plane crash has told the BBC that he feels he is the luckiest man alive. Officials in Iran warn the main source of drinking water for residents of Tehran is at risk of running dry within two weeks. Flight delays continue across the US, as air traffic controllers working without pay due to the government shutdown are now calling in sick. The Maldives brings in the world's only generational smoking ban, and cricket fans across India celebrate the women's national side winning their first ever World Cup.

The Global News Podcast brings you the breaking news you need to hear, as it happens. Listen for the latest headlines and current affairs from around the world. Politics, economics, climate, business, technology, health – we cover it all with expert analysis and insight. Get the news that matters, delivered twice a day on weekdays and daily at weekends, plus special bonus episodes reacting to urgent breaking stories. Follow or subscribe now and never miss a moment. Get in touch: globalpodcast@bbc.co.uk

It Could Happen Here - Occulture, Technomancy vs Tradition, and the Role of Magick in 2025

Garrison talks with a panel of magicians at the Occulture conference in Berlin to discuss digital technomancy vs. traditional magical practices and debate the ability of occultism to shape politics and culture in contemporary society.

See omnystudio.com/listener for privacy information.

array(3) { [0]=> string(150) "https://www.omnycontent.com/d/programs/e73c998e-6e60-432f-8610-ae210140c5b1/78d30acb-8463-4c40-a5ae-ae2d0145c9ff/image.jpg?t=1751824393&size=Large" [1]=> string(10) "image/jpeg" [2]=> int(0) }

Good Bad Billionaire - Diane Hendricks: Building a fortune

Diane Hendricks rose from a teenage mother on a Wisconsin dairy farm to become America’s richest self-made woman, building a $22 billion fortune through roofing giant ABC Supply.

BBC business editor Simon Jack and journalist Zing Tsjeng trace her journey from selling homes to leading the largest roofing supplies company in the US. From renovating properties to reshaping her hometown of Beloit, Hendricks’ story is one of grit, ambition, and political influence.

Good Bad Billionaire is the podcast that explores the lives of the super-rich and famous, tracking their wealth, philanthropy, business ethics and success. There are leaders who made their money in Silicon Valley, on Wall Street and in high street fashion. From iconic celebrities and CEOs to titans of technology, the podcast unravels tales of fortune, power, economics, ambition and moral responsibility, before asking the audience to decide if they are good, bad, or just billionaires.

The Economics of Everyday Things - 113. Laundromats

A day on the job includes hundreds of quarters, giant balls of lint, and fishing weird stuff out of machines. Zachary Crockett throws in a load.

 

 


Hosted by Simplecast, an AdsWizz company. See pcm.adswizz.com for information about our collection and use of personal data for advertising.