Issue #724

Unit Testing Performance, Ordering, FastAPI, and More

March 3, 2026

Unit Testing Performance, Ordering, FastAPI, and More
#724 – MARCH 3, 2026 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Unit Testing: Catching Speed Changes
This second post in a series covers how to use unit testing to ensure the performance of your code. This post talks about catching differences in performance after code has changed.
ITAMAR TURNER-TRAURING

Lexicographical Ordering in Python
Python lexicographically orders tuples, strings, and all other sequences, comparing element-by-element. Learn what this means when you compare values or sort.
TREY HUNNER

A Cheaper Heroku? See for Yourself
Is PaaS too expensive for your Django app? We built a comparison calculator that puts the fully-managed hosting options head-to-head →
JUDOSCALEsponsor

Start Building With FastAPI
Learn how to build APIs with FastAPI in Python, including Pydantic models, HTTP methods, CRUD operations, and interactive documentation.
REAL PYTHON course

PEP 743: Add Py_OMIT_LEGACY_API to the Python C API (Rejected)
PYTHON.ORG

DjangoCon US 2026 (Chicago) Call for Proposals Open
DJANGOCON.US


Python Jobs


Python + AI Content Specialist
REAL PYTHON 📍 ANYWHERE

More Python Jobs >>>


Articles & Tutorials


Serving Private Files With Django and S3
Django’s FileField and ImageField are good at storing files, but on their own they don’t let you control access. Serving files from S3 just makes this more complicated. Learn how to secure a file behind your login wall.
RICHARD TERRY

FastAPI Error Handling: Types, Methods, and Best Practices
FastAPI provides various error-handling mechanisms to help you build robust applications. With built-in validation models, exceptions, and custom exception handlers, you can build robust and scalable FastAPI applications.
HONEYBADGER.IO • Shared by Addison Curtis

CLI Subcommands With Lazy Imports
Python 3.15 will support lazy imports, meaning modules don’t get pulled in until they are needed. This can be particularly useful with Command Line Interfaces where a subcommand doesn’t need everything to be useful.
BRETT CANNON

How the Self-Driving Tech Stack Works
A technical guide to how self-driving cars actually work. CAN bus protocols, neural networks, sensor fusion, and control system with open source implementations, most of which can be accessed through Python.
CARDOG

Managing Shared Data Science Code With Git Submodules
Learn how to manage shared code across projects using Git submodules. Prevent version drift, maintain reproducible workflows, and support team collaboration with practical examples.
CODECUT.AI • Shared by Khuyen Tran

Datastar: Modern Web Dev, Simplified
Talk Python interviews Delaney Gillilan, Ben Croker, and Chris May about the Datastar framework, a library that combines the concepts of HTMX, Alpine, and more.
TALK PYTHONpodcast

Introducing the Zen of DevOps
Inspired by the Zen of Python, Tibo has written a Zen of DevOps, applying similar ideas from your favorite language to the world of servers and deployment.
TIBO BEIJEN

Stop Using Pickle Already. Seriously, Stop It!
Python’s Pickle is insecure by design, so using it in public facing code is highly problematic. This article explains why and suggests alternatives.
MICHAL NAZAREWICZ

Raw+DC: The ORM Pattern of 2026?
After 25+ years championing ORMs, Michael has switched to raw database queries paired with Python dataclasses. This post explains why.
MICHAEL KENNEDY


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 →

InvenTree: OSS Inventory Management System
GITHUB.COM/INVENTREE

marimo-jupyter-extension: Integrate Marimo Into JupyterLab
GITHUB.COM/MARIMO-TEAM

py2many: Transpiler of Python to Many Other Languages
GITHUB.COM/PY2MANY

ptapplot: Make Pressure Tap Plots
GITHUB.COM/PAULENORMAN

django-bolt: Rust-Powered API Framework for Django
GITHUB.COM/FARHANALIRAZA

📆🐍 Upcoming Python Events


Weekly Real Python Office Hours Q&A (Virtual)
March 4, 2026

Python Unplugged on PyTV
March 4 to March 5, 2026

Canberra Python Meetup
March 5, 2026

Sydney Python User Group (SyPy)
March 5, 2026

PyDelhi User Group Meetup
March 7, 2026

PyConf Hyderabad 2026
March 14 to March 16, 2026
Happy Pythoning!
Copyright © 2026 PyCoder’s Weekly, All rights reserved.