Skip to content
TILens What matters today in tech v0.4.0
Theme

Topic - Edition

Python news

52 items on 01 Dec 2026
Python

Make textwrap reject nonsensical indent/width combinations

I was looking at some of the open PRs for textwrap, and there are some cases in which the caller’s request can’t be satisfied. For example, an indent which can’t fit in the width: >>> textwrap.wrap("abcdef", width=2,…

Source: Python Ideas Stephen Rosen
Python

Step 5 Draws a Python Reading a Book

Explore Step 5's Python code, turtle drawing, and responses to small tasks that check modern syntax, release knowledge, focused edits, and made-up functions.

Source: Real Python
Python

Plotting Declarative Charts With Altair

Learn to build interactive Python charts with Altair by mapping data to visual channels, faceting, linking selections, and exporting to HTML.

Source: Real Python
Python Django

Django Weblog: Welcome Our Executive Director

We are honored to introduce Paola Ferrario as the Django Software Foundation's first Executive Director. Paola brings more than 19 years of experience in nonprofit fundraising, international economic development, and…

Source: Planet Python
Python

Quiz: Using Python for Data Analysis

Test your understanding of a Python data analysis workflow, from cleansing data with pandas to running a linear regression with scikit-learn.

Source: Real Python
Python

Use a dispatch opcode to move tier-2 specializations into tier 1

The JIT gets its speed from several sources; one of them is specializations that exist only as tier-2 uops. Many of those cannot be added to tier 1 as specialized opcodes: the 8-bit opcode space is nearly full…

Source: Python Ideas Pieter Eendebak
Python

Proposal: Add hook for handling eof in tag in HTMLParser

I’m still hoping for the Parser.flush PR I put in but there would still be an outstanding issue of how to detect if a tag is ignored because EOF occurs in the middle of parsing it. I’m trying to generate HTML from…

Source: Python Ideas Ian Wilson