Skip to content
TILens What matters today in tech v0.4.0
Theme
Topics - Python
Calendar · NOV 2026
‹ Nov 2026 ›
  1. JAN
  2. FEB
  3. MAR
  1. APR
  2. MAY
  3. JUN
  1. JUL
  2. AUG
  3. SEP
  1. OCT
  2. NOV
  3. DEC
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
Favorites (0)

Community stream

Community

Python Morsels: Creating temporary files in Python

How to create temporary files and directories in Python using the tempfile module's NamedTemporaryFile and TemporaryDirectory. Table of contents Making a temporary file Leaving temporary files open Making a temporary directory You probably want a…

planet-python

Trey Hunner: Python Morsels now has spaced repetition

Nearly every book I’ve read on teaching and education over the past decade has talked about the value of spaced repetition. For much of that time, spaced repetition has been something I would recommend learners do, but it wasn’t something I helped…

planet-python

Graham Dumpleton: Phased behaviour in wrapture

Most of what a test configures on a patch holds until the test changes it. Retry logic is the classic case where that is not enough: the code under test keeps calling, and the test needs the behaviour to change on its own as it does. Fail twice and…

planet-python

Bob Belderbos: Why does Alembic need an import you never use?

A coaching session this week surfaced a good question: Alembic autogenerate only works if you import your models first, even though you never reference them. Ruff flags the import as unused. So why is it there? Instead of just adding # noqa: F401, I…

planet-python

GPT‑6 Astra

GPT‑6 Astra GPT-6 Astra is "rolling out today to a limited set of organizations and over the coming days will become available to all ChatGPT Plus, Pro, Business, and Enterprise users, as well as through the OpenAI API and AWS" - I've not tried it…

simon-willison

You Should be Using Rootless Containers

The other day a serious vulnerability was disclosed in one of the newer Linux distributions (the one led by the racist, so it isn't getting a mention here). The issue was interesting because it was caused by a non-standard Docker configuration that…

miguel-grinberg

Namespace blocks

I started playing with the idea of namespaces in Python due to the recent discussions about public/private. It’s often useful to group related items under a name, but creating a submodule isn’t always desirable. Python currently has two constructs…

discuss-python-ideas

Python API exposure mechanisms (public/internal) - determining status quo

Motivation and scope This is a summary of the API exposure mechanisms currently used in Python, i.e. whether interaction with names from outside of the namespace they live in is intended and supported. The primarily relevant namespaces are modules…

discuss-python-ideas

Graham Dumpleton: Recording calls with wrapture

In unit testing with wrapture the tests leaned on a timeline and a tape to assert on what happened, and I skipped over what those actually are. This post is about the recording side of wrapture: what gets recorded, what one event holds, how a test…

planet-python

llm-openrouter 0.7.1

Release: llm-openrouter 0.7.1 Performance fix for loading OpenRouter models. Thanks, waveplate. #59 Tags: llm, openrouter

simon-willison

llm 0.34

Release: llm 0.34 One new feature: llm logs --usage Markdown output now includes the response duration in milliseconds and as a human-readable duration. llm logs --short includes a new duration_ms field. #1653 Plus several contributed bug fixes, and…

simon-willison

llm-anthropic 0.28

Release: llm-anthropic 0.28 Claude Fable 5.1, reasoning traces are now displayed by default for models that support them, plus a new llm_anthropic.ClaudeRefusal exception for when Claude throws a refusal. Tags: llm, anthropic, claude,…

simon-willison

llm-gemini 0.34

Release: llm-gemini 0.34 New model gemini-3.8-flash for Gemini 3.8 Flash, with low, medium and high thinking levels. #146 Fixed async responses failing to record the resolved model version. Thanks, Charlie Tonneslan. #137 Google released Gemini 3.8…

simon-willison

Quoting Rick Brewster

Direct2D has always been the biggest hurdle for Paint.NET on WINE, and it's clear that it will never be completed enough for Paint.NET's use. And I can't just "disable" the use of Direct2D. So, instead, Paint.NET now has an internal, from-scratch,…

simon-willison

Django Weblog: Django bugfix release issued: 6.1.1

Today we've issued the 6.1.1 bugfix release. The release package and checksums are available from our downloads page, as well as from the Python Package Index. The PGP key ID used for this release is Jacob Walls: 131403F4D16D8DC7

planet-python

Do not release the GIL during object destruction

Currently, the GIL can be released during object deallocation, either because a C function explicitly does so, or the object has a Python __del__ method. This adds a sharp edge to reasoning about thread-safety with the GIL. I proposed not allowing…

discuss-python-ideas

1312 items available