Issue #722

Itertools, Circular Imports, Mock, and More

Feb. 17, 2026

Itertools, Circular Imports, Mock, and More
#722 – FEBRUARY 17, 2026 VIEW IN BROWSER
The PyCoder’s Weekly Logo
5 Essential Itertools for Data Science
Learn 5 essential itertools methods to eliminate manual feature engineering waste. Replace nested loops with systematic functions for interactions, polynomial features, and categorical combinations.
CODECUT.AI • Shared by Khuyen Tran

A Fun Python Puzzle With Circular Imports
A deep inspection of just what happens when you write from ... import ... and how that impacts circular import references in your code.
CHRIS SIEBENMANN

B2B MCP Auth Support
Your users are asking if they can connect their AI agent to your product, but you want to make sure they can do it safely and securely. PropelAuth makes that possible →
PROPELAUTHsponsor

Improving Your Tests With the Python Mock Object Library
Master Python testing with unittest.mock. Create mock objects to tame complex logic and unpredictable dependencies.
REAL PYTHON course

Python 3.15.0 Alpha 6 Released
CPYTHON DEV BLOG


Python Jobs


Python + AI Content Specialist
REAL PYTHON 📍 ANYWHERE

More Python Jobs >>>


Articles & Tutorials


Introducing the PSF Community Partner Program
The Python Software Foundation has announced the new Community Partner Program, a way for the PSF to support Python events and initiatives with non-financial support such as promotion and branding.
PYTHON SOFTWARE FOUNDATION

Better Python Tests With inline-snapshot
inline-snapshot lets you quickly and easily write rigorous tests that automatically update themselves. It combines nicely with dirty-equals to handle dynamic data that’s a pain to normalize.
PYDANTIC.DEV • Shared by Alex Hall

See Why Your CI Is Slow
Your GitHub Actions workflows are burning time and money, but you’re flying blind. Depot’s new Analytics shows exactly where your CI spends resources. Track trends, find bottlenecks, optimize across your org. Get visibility with Depot →
DEPOTsponsor

Django’s Test Runner Is Underrated
Loopwerk never made the switch from unittest to pytest for their Django projects. And after years of building and maintaining Django applications, they still don’t feel like they’re missing out.
LOOPWERK

Webmentions With Batteries Included
A webmention is a W3 standard for one post to refer to another and interlink. This article introduces you to a Python library that helps you implement this feature on your site.
FABIO MANGANIELLO

Python 3.12 vs 3.13 vs 3.14
Compare Python 3.12, 3.13, and 3.14: free-threading, JIT, t-strings, performance, and library changes. Which version should you actually use in 2026?
MATHEUS

Django Steering Council 2025 Year in Review
Want to know what is happening in the world of the Django project? This post talks about all the things the Django Steering Council did in 2025.
FRANK WILES

What Exactly Is the Zen of Python?
The Zen of Python is a collection of 19 guiding principles for writing good Python code. Learn its history, meaning, and hidden jokes.
REAL PYTHON

Quiz: What Exactly Is the Zen of Python?
REAL PYTHON

Open Source AI We Use to Work on Wagtail
One of the core maintainers at Wagtail CMS shares what open source models having been working best for the project so far.
WAGTAIL.ORG • Shared by Meagen Voss

Need Switch-Case in Python? It’s Not Match-Case!
Python’s match-case is not a switch-case statement. If you need switch-case, you can often use a dictionary instead.
TREY HUNNER

Python Time & Space Complexity Reference
Open-source reference documenting time and space O(n) complexity for Python built-in and stdlib operations.
PYTHONCOMPLEXITY.COM • Shared by Heikki Toivonen


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 →

pycaniuse: Query caniuse.com From the Terminal
GITHUB.COM/VISESHRP • Shared by Visesh Prasad

silkworm-rs: Free-Threaded Compatible Async Web Scraper
GITHUB.COM/BITINGSNAKES • Shared by Yehor Smoliakov

django-deadcode: Tracks URLs, Templates, and Django Views
GITHUB.COM/NANOREPUBLICA

oxyde: Type-Safe, Pydantic-Centric Async ORM
GITHUB.COM/MR-FATALYST

Skylos: Quiet Static Analysis + Optional Agent Mode
GITHUB.COM/DURIANTACO • Shared by aaron oh

📆🐍 Upcoming Python Events


Weekly Real Python Office Hours Q&A (Virtual)
February 18, 2026

PyData Bristol Meetup
February 19, 2026

PyLadies Dublin
February 19, 2026

PyCon Namibia 2026
February 20 to February 27, 2026

Chattanooga Python User Group
February 20 to February 21, 2026

PyCon Mini Shizuoka 2026
February 21 to February 22, 2026
Happy Pythoning!
Copyright © 2026 PyCoder’s Weekly, All rights reserved.