Issue #696

Namespaces, with, functools.Placeholder, and More

Aug. 26, 2025

Namespaces, with, functools.Placeholder, and More
#696 – AUGUST 26, 2025 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Python Namespace Packages Are a Pain
Namespace packages are a way of splitting a Python package across multiple directories. Namespaces can be implicit or explicit and this can cause confusion. This article explains why and recommends what to do.
JOSH CANNON

Python’s with Statement: Manage External Resources Safely
Understand Python’s with statement and context managers to streamline the setup and teardown phases in resource management. Start writing safer code today!
REAL PYTHON

functools.Placeholder
Learn how to use functools.Placeholder, new in Python 3.14, with a real-life example.
RODRIGO GIRÃO SERRÃO

PEP 750: Template Strings (Final)
PYTHON.ORG

PEP 728: TypedDict With Typed Extra Items (Accepted)
PYTHON.ORG

PyData Seattle Nov 708, Call for Proposals
PYDATA.ORG

Pytype Discontinued, Last Version 3.12
GITHUB.COM/GOOGLE


Articles & Tutorials


Agentic Al Programming With Python
Agentic AI programming is what happens when coding assistants stop acting like autocomplete and start collaborating on real work. This episode of Talk Python To Me interviews Matthew Makai and they cut through the hype and incentives to define “agentic,” and get hands-on with how it can work for you.
KENNEDY & MAKAI podcast

pytest for Data Scientists
This guide shows how to use pytest to write lightweight yet powerful tests for functions, NumPy arrays, and pandas DataFrames. You’ll also learn about parametrization, fixtures, and mocking to make your workflows more reliable and production-ready.
CODECUT.AI • Shared by Khuyen Tran

SciPy, NumPy, and Fostering Scientific Python
What went into developing the open-source Python tools data scientists use every day? This week on the show, we talk with Travis Oliphant about his work on SciPy, NumPy, Numba, and many other contributions to the Python scientific community.
REAL PYTHON podcast

The State of Python 2025
Explore the key trends and actionable ideas from the latest Python Developers Survey, which was conducted jointly by the Python Software Foundation and JetBrains PyCharm and includes insights from over 30,000 developers. Discover the key takeaways in this blog post.
JETBRAINS.COM • Shared by Evgeniia Verbina from JetBrains PyCharm

Preventing Domain Resurrection Attacks
“PyPI now checks for expired domains to prevent domain resurrection attacks, a type of supply-chain attack where someone buys an expired domain and uses it to take over PyPI accounts through password resets.”
MIKE FIEDLER

How to Use Redis With Python
“Redis is an open-source, in-memory data structure store that can be used as a database, cache, message broker, or queue” Learn how to use it with Python in this step-by-step tutorial.
APPSIGNAL.COM • Shared by AppSignal

Custom Parametrization Scheme With pytest
Custom parametrisation schemes are not advertised a lot within the pytest community. Learn how they can improve readability and debugging of your tests.
CHRISTOS LIONTOS • Shared by Christos Liontos

Hypothesis Is Now Thread-Safe
Hypothesis is a property-based testing library for Python. In order to move towards comparability with free-threading, the library is now thread safe.
LIAM DEVOE

Single and Double Underscores in Python Names
Learn Python naming conventions with single and double underscores to design APIs, create safe classes, and prevent name clashes.
REAL PYTHON


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 →

Biopython: Biological Computation Tools
BIOPYTHON.ORG

cement: Application Framework for Python
GITHUB.COM/DATAFOLKLABS

attrs: Python Classes Without Boilerplate
GITHUB.COM/PYTHON-ATTRS

audioFlux: Audio and Music Analysis, Feature Extraction
GITHUB.COM/LIBAUDIOFLUX

uvloop: Ultra Fast Asyncio Event Loop
GITHUB.COM/MAGICSTACK

📆🐍 Upcoming Python Events


Weekly Real Python Office Hours Q&A (Virtual)
August 27, 2025

PyCon Poland 2025
August 28 to September 1, 2025

PyCon Kenya 2025
August 28 to August 31, 2025

PyCon Greece 2025
August 29 to August 31, 2025

🐍 ¡Cuarta Reunión De Pythonistas GDL!
August 30, 2025

PyData Berlin 2025
September 1 to September 4, 2025

Limbe
September 1 to September 2, 2025

Django Summit DELSU
September 1 to September 6, 2025

PyCon Taiwan
September 6 to September 8, 2025
Happy Pythoning!
Copyright © 2025 PyCoder’s Weekly, All rights reserved.