Issue #703

PEP 8, Error Messages in Python 3.14, splitlines(), and More

Oct. 7, 2025

PEP 8, Error Messages in Python 3.14, splitlines(), and More
#703 – OCTOBER 7, 2025 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Python Violates PEP 8
PEP 8 outlines the preferred coding style for Python. It often gets wielded as a cudgel in online conversations. This post talks about what PEP 8 says and where it often gets ignored.
AL SWIEGART

Python 3.14 Preview: Better Syntax Error Messages
Python 3.14 includes ten improvements to error messages, which help you catch common coding mistakes and point you in the right direction.
REAL PYTHON

Quiz: Python 3.14 Preview: Better Syntax Error Messages
REAL PYTHON

Free Course: Build a Durable AI Agent with Temporal and Python
Curious about how to build an AI agent that actually works in production? This free hands-on course shows you how with Python and Temporal. Learn to orchestrate workflows, recover from failures, and deliver a durable chatbot agent that books trips and generates invoices. Explore Tutorial →
TEMPORALsponsor

Why splitlines() Instead of split("\n")?
To split text into lines in Python you should use the splitlines() method, not the split() method, and this post shows you why.
TREY HUNNER

PEP 810: Explicit Lazy Imports (Added)
PYTHON.ORG

PEP 809: Stable ABI for the Future (Added)
PYTHON.ORG

PEP 807: Index Support for Trusted Publishing (Added)
PYTHON.ORG

PyOhio 2025 Videos Online
YOUTUBE.COM

Django Security Releases Issued: 5.2.7, 5.1.13, and 4.2.25
DJANGO SOFTWARE FOUNDATION


Python Jobs


Senior Python Developer
TECHNOIDENTITY 📍 HOUSTON, TX, USA

More Python Jobs >>>


Articles & Tutorials


Advice on Beginning to Learn Python
What’s changed about learning Python over the last few years? What new techniques and updated advice should beginners have as they start their journey? This week on the show, Stephen Gruppetta and Martin Breuss return to discuss beginning to learn Python.
REAL PYTHON podcast

Winning a Bet About six
In 2020, Seth Larson and Andrey Petrov made a bet about whether six, the Python 2 compatibility shim would still be in the top 20 PyPI downloads. Seth won, but probably only because of a single library still using it.
SETH LARSON

Show Off Your Python Chops: Win the 2025 Table & Plotnine Contests
Showcase your Python data skills! Submit your best Plotnine charts and table summaries to the 2025 Contests. Win swag, boost your portfolio, and get recognized by the community. Deadline: Oct 17, 2025. Submit now!
POSITsponsor

Durable Python Execution With Temporal
Talk Python interviews Mason Egger to discuss Temporal, a durable execution platform that enables developers to build scalable applications without sacrificing productivity or reliability.
KENNEDY & EGGER podcast

Astral’s ty: A New Blazing-Fast Type Checker for Python
Learn to use ty, an ultra-fast Python type checker written in Rust. Get setup instructions, run type checks, and fine-tune custom rules in personal projects.
REAL PYTHON

Quiz: Astral’s ty Type Checker for Python
REAL PYTHON

What Is “Good Taste” in Software Engineering?
This opinion piece talks about the difference between skill and taste when writing software. What “clean code” means to one may not be the same as to others.
SEAN GOEDECKE

Modern Python Linting With Ruff
Ruff is a blazing-fast, modern Python linter with a simple interface that can replace Pylint, isort, and Black—and it’s rapidly becoming popular.
REAL PYTHON course

Quiz: Modern Python Linting With Ruff
REAL PYTHON

Introducing tdom: HTML Templating With t‑strings
Python 3.14 introduces t-strings and this article shows you tdom a new HTML DOM toolkit that takes advantage of them to produce safer output.
DAVE PECK

Full Text Search With Django and SQLite
A walkthrough how to build full text search to power the search functionality of a blog using Django and SQLite.
TIMO ZIMMERMANN


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 →

subprocesslib: Like pathlib for the subprocess Module
PYPI.ORG • Shared by Antoine Cezar

Python Implementation of the Cap’n Web Protocol
GITHUB.COM/ABILIAN • Shared by Stefane Fermigier

air: New Python Web Framework
GITHUB.COM/FELDROY

fastapi-radar: Debugging Dashboard for FastAPI Apps
GITHUB.COM/DOGANARIF

Try Sphinx Docs Instantly in Your Browser
DOCUMATT.COM • Shared by Libor Jelínek

📆🐍 Upcoming Python Events


Weekly Real Python Office Hours Q&A (Virtual)
October 8, 2025

PyCon Africa 2025
October 8 to October 13, 2025

Wagtail Space 2025
October 8 to October 11, 2025

PyCon Hong Kong 2025
October 11 to October 13, 2025

PyCon NL 2025
October 16 to October 17, 2025

PyCon Thailand 2025
October 17 to October 19, 2025

PyCon Finland 2025
October 17 to October 18, 2025

PyConES 2025
October 17 to October 20, 2025
Happy Pythoning!
Copyright © 2025 PyCoder’s Weekly, All rights reserved.