Issue #682

pylock.toml, NumPy, t-strings, and More

May 20, 2025

pylock.toml, NumPy, t-strings, and More
#682 – MAY 20, 2025 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Going Beyond requirements.txt With pylock.toml
What is the best way to record the Python dependencies for the reproducibility of your projects? What advantages will lock files provide for those projects? This week on the show, we welcome back Python Core Developer Brett Cannon to discuss his journey to bring PEP 751 and the pylock.toml file format to the community.
REAL PYTHON podcast

I Don’t Like NumPy
This opinion piece talks about why NumPy gets difficult fast. Two dimensions to your array? No problem, the calc is mostly self evident. Add a couple more dimensions and it gets messy fast. See also the associated HN discussion, which also includes possible solutions.
DYNOMIGHT

Webinar: Inside Dust’s AI-Powered Vision for the Future of Work
Join us on June 5 for a behind-the-scenes look at how Dust is building the future of work with AI and why Temporal is at the heart of their platform. We’ll explore how Dust is transforming those everyday tasks with intelligent agents that are deeply contextual, resilient, and production-ready →
TEMPORALsponsor

Unravelling t-strings
PEP 750 introduced t-strings for Python 3.14. These are a template string mechanism similar to f-strings. Although they are in 3.14.0b1, there isn’t any documentation yet, so this post explains what they are how they can be used.
BRETT CANNON

Quiz: Getting Started With Python IDLE
REAL PYTHON


Python Jobs


Senior Software Engineer – Quant Investment Platform (LA or Dallas)
CAUSEWAY CAPITAL MANAGEMENT LLC 📍 LOS ANGELES, CA, USA

More Python Jobs >>>


Articles & Tutorials


Working With Missing Data in Polars
In this video course, you’ll learn how to deal with missing data in Polars to ensure it doesn’t interfere with your data analysis. You’ll discover how to check for missing values, update them, and remove them.
REAL PYTHON course

Django Security Best Practices
This guide contains a long list of best practices for securing your Django site. It includes topics such as ensuring HTTPS everywhere, hardening your database, using key built-in security features, and more.
AHMAD SADEDDIN

Read My Lips: Automate Lip Syncing with Wav2Lip
Don’t let your message be misunderstood! Use Wav2Lip for automated and AI-powered lip syncing. Get the code now.
INTEL CORPORATIONsponsor

t-strings in Python (PEP 750)
Python 3.14 will include the new t-string concept, an f-string like mechanism for string templating. Talk Python interviews Paul Everitt, David Peck, and Jim Baker and they talk about the upcoming feature.
KENNEDY ET AL podcast

The Database Row That Did and Didn’t Exist
Misty ran into a confounding bug, where loading and saving certain Django ORM objects was failing, but not all of them. Read on to understand what went wrong.
MISTY DE MÉO

The Appearing Built-In
Rodrigo discovered that examining the builtins module in the REPL changes the size of the builtins module. Read on to find what causes this oddity.
RODRIGO GIRÃO SERRÃO

What Does @Slot() Do in Qt?
When working with Qt slots and signals in PySide6 you might discover the @Slot decorator. This post tells you what it does and why you might use it.
MARTIN FITZPATRICK

5 Steps to N-Body Simulation
This article shows you how to simulate gravity in an N-body problem. It starts out with simpler simulation then adds optimizations as it goes along.
ALVIN NG

PEPs & Co.
A little bit of Python history: where the term “PEP” came from, along with a list of similar types of documents for other languages.
HUGO VAN KEMENADE

The First Year of Free-Threaded Python
A recap of the first year of work on enabling support for the free-threaded build of CPython in community packages.
NATHAN GOLDBAUM

Pandas: Drop Columns by Name in DataFrames
A quick overview of the variety of ways to drop columns from a pandas DataFrame, referencing the columns by name.
ERIK MARSJA

Working on Complex Systems: What I Learned at Google
Explore the key characteristics of complex systems and learn practical patterns for tackling complex problems.
TEIVA HARSANYI

Building a Real-Time Dashboard With Flask and Svelte
Learn how to build a real-time analytics dashboard using Flask and Svelte with server-sent events.
AMIR TADRISI


Projects & Code


Brought to you by Real Python for Teamssponsor
Online Python training created by a community of experts. Give your team the real-world Python skills they need to succeed →

manim: Framework for Mathematical Animations
GITHUB.COM/MANIMCOMMUNITY

pytest-benchmark: pytest Fixture for Benchmarking Code
GITHUB.COM/IONELMC

param: Clearer Python by Declaring Parameters
GITHUB.COM/HOLOVIZ

pyftpdlib: Fast and Scalable Python FTP Server Library
GITHUB.COM/GIAMPAOLO

pyrefly: A Fast Type Checker and IDE for Python
GITHUB.COM/FACEBOOK

📆🐍 Upcoming Python Events


Weekly Real Python Office Hours Q&A (Virtual)
May 21, 2025

Python Leiden User Group
May 22, 2025

PyLadies Amsterdam: Dapr in Action: From Core Concepts to AI Agents
May 27, 2025

Python Sheffield
May 27, 2025

PyCon Italia 2025
May 28 to June 1, 2025

PyKla Monthly Meetup
May 28, 2025
Happy Pythoning!
Copyright © 2025 PyCoder’s Weekly, All rights reserved.