Issue #748

Line Breaks, OpenCode, Segfaults, and More

Aug. 18, 2026

Line Breaks, OpenCode, Segfaults, and More
#748 – AUGUST 18, 2026 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Breaking Up (Lines) Is Hard to Do
Here’s a seemingly simple question: given a chunk of multi-line text, how do you split it and return an array? Unicode makes everything harder than it might first seem.
B-LIST.ORG

Coding With OpenCode: AI-Assisted Python
Learn how to use OpenCode for AI-assisted Python coding, using a free Gemini API key to analyze and refactor code right in your terminal.
REAL PYTHON course

Quiz: Coding With OpenCode: AI-Assisted Python
REAL PYTHON

The Top Open-Source Code Reviewer on Code-Review-Bench
PR-AF places #2 of 42 overall on Martian’s Code-Review-Bench, ahead of CodeRabbit, Copilot, and Devin. Roughly 3x more valid findings than the commercial tools, at ~10x lower cost per review. Verified findings only. Apache 2.0, self-hosted, runs on any open or closed model. Star & Deploy →
AGENTFIELDsponsor

Two Lines of Python That Segfault the Interpreter
Two lines of plain Python segfaulted every CPython with lazy annotations: PEP 749 gave SET_ADD an operand that user code can rebind.
TIMOFEI IVANKOV • Shared by Timofei Ivankov

Packaging Council Election Candidates for 2026!
PYTHON.ORG

Announcing the PSF Board Candidates for 2026!
PYTHON SOFTWARE FOUNDATION

Django Is Moving to an Annual Release Cycle
DJANGO SOFTWARE FOUNDATION

PEP 844: public and private Builtins (Draft)
PYTHON.ORG

Python 3.12.14, 3.11.16 and 3.10.21 Released
PYTHON.ORG

Django Rest Framework Release 3.18.0
GITHUB.COM/ENCODE


Articles & Tutorials


OAuth 2.0 in Python: The Authorization Code Flow Explained
OAuth’s authorization code flow, explained from the four roles up: the redirect, the code-for-token exchange, state, PKCE, and refresh tokens, with a complete runnable Python script and a table of the OAuth errors you’ll actually hit.
ENDPOINT51.COM • Shared by Simon O’Connor

The Problem With pandas Isn’t Performance
This opinion piece argues that pandas’ biggest everyday cost is often cognitive overhead rather than execution time and explores whether a backend-independent data-analysis DSL could reduce it
NEAL HUGHES • Shared by Neal Hughes

🐍 Object-Oriented Python, Taught Live
The Object-Oriented Python live cohort begins August 24. Five 2-hour Zoom sessions Mon to Fri build one growing application end to end, with OOP features introduced as the code starts needing them: classes, the data model, inheritance vs composition, properties, dataclasses. Learn more →
REAL PYTHONsponsor

Security of Everything at PyCon 2026
This year’s PyCon US added a dedicated security track. Talk Python interviews some of the key folks from the center of it: Juanita Gomez, Mike Fiedler, and Seth Michael Larson.
TALK PYTHON podcast

The HTML Representation of the Index API Is Now Frozen
‘PyPI has adopted PEP 833, which “freezes” the HTML representation of the index API, which is also sometimes called the “simple API” or the “simple repository API.”’
PYPI.ORG

How to Integrate OpenTelemetry With a FastAPI App
Learn how to integrate OpenTelemetry with a FastAPI app in Python to instrument endpoints, export traces, add custom spans, and correlate logs.
REAL PYTHON

Quiz: How to Integrate OpenTelemetry With a FastAPI App
REAL PYTHON

Qt Designer and Python: Build Your GUI Applications Faster
Learn how to use Qt Designer to build Python GUIs with PyQt6. Create your main windows and dialogs visually, then load them in your app.
REAL PYTHON

Admin Form Injection
Learn about a hidden Django admin feature for passing values between pop-up windows on the web.
TIM SCHILLING

Caller-Specific Coverage
An idea for a new feature for coverage measurement: per-caller coverage
NED BATCHELDER


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 →

pytest-leak-finder: Find Leaking Test Before the One That Fails
GITHUB.COM/MGAITAN

num2words: Convert Numbers to Words. 42 –> Forty-Two
GITHUB.COM/SAVOIRFAIRELINUX

marimo-book: Static Site Generator for marimo Notebooks
GITHUB.COM/LJCHANG

pyrig: Aautomate Python Project Setup
GITHUB.COM/WINIPEDIA • Shared by Winipedia

cog: Embedded Graph Database for Python
GITHUB.COM/ARUN1729

📆🐍 Upcoming Python Events


Weekly Real Python Office Hours Q&A (Virtual)
August 19, 2026

PyCon Ghana 2026
August 20 to August 23, 2026

PyCon Latam 2026
August 20 to August 24, 2026

PyLadies: Getting Started With Tabular Foundation Models With TabPFN
August 20, 2026

PyData Bristol Meetup
August 20, 2026

OSS Security Meetup: Mike Fiedler, PyPI Safety and Security Engineer
Wednesday, August 26

PyCon JP 2026
August 21 to August 24, 2026

DjangoCon US 2026
August 24 to August 29, 2026

PyCon AU 2026
August 26 to August 31, 2026

PyCon PL 2026
August 27 to August 31, 2026

PyCon Kenya 2026
August 28 to August 30, 2026

PyCon Togo 2026
August 28 to August 30, 2026
Happy Pythoning!
Copyright © 2026 PyCoder’s Weekly, All rights reserved.