Topic
Everything filed under Python, newest first.
RSS · JSON · All topics
Microsoft’s agent-framework PyPI package Compromised with Credential Stealer
Socket's Threat Research team reports that compromised versions 1.26.1 and 1.26.2 of Microsoft's agent-framework package on PyPI used .pth startup hooks to exfiltrate Azure, GitHub Actions, and CI/CD credentials, with indicators of compromise.
4 min · 834 words
funkycache: a Python library to cache functions in SQLite
Alex Chan explains why he wrote funkycache, a small Python library that caches function results in SQLite to speed up his static site build, and how it works.
8 min · 1,852 words
In Memoriam: Tim Peters 1952–2026
Guido van Rossum announces that longtime Python core developer Tim Peters, author of the Zen of Python and creator of the Timsort algorithm, died on July 15, 2026, and reflects on his outsized influence on Python.
1 min · 232 words
Adopting Python 3.15's lazy imports: a 4× faster CLI, and where they didn't help
Namegarage describes moving its back office to Python 3.15 and using explicit lazy imports to make its CLI about 4× faster to start, with an allowlist gate, eager-import tests, cases where lazy imports were not lazy, and profiling results.
11 min · 2,586 words
Stable URLs for 42,000 Huts and Peaks
How biwak.info gives every hut, bivouac and peak a short, readable URL like /p/matterhorn that never changes: plain names when unique, then region, elevation and OpenStreetMap id as tie-breakers, with a committed slug registry so URLs never move.
6 min · 1,436 words
PyPI's redesigned project pages with clearer security signals are now live
PyPI has finished rolling out redesigned project pages, built with Kabu Creative and community user research, that surface security signals such as provenance and digital attestations more clearly and reorganize package details and release files.
6 min · 1,329 words
The Shift of Theseus — Toy Bit Provenance Abstract Domain
CF Bolz-Tereick extends PyPy's Toy Optimizer with a bit provenance abstract domain that tracks where each bit of a value came from, letting the JIT recognize shifts, masks and identities across instruction sequences that a known-bits domain misses, with transfer functions, rewrite extraction and an evaluation on Pydrofoil and PyPy.
25 min · 5,858 words
tar-codec: a fast and secure tar parser for the Rust ecosystem
Astral's William Woodruff explains tar-codec, the new Rust tar parser uv uses for source distributions from 0.13: roughly twice as fast as astral-tokio-tar, built to reduce parser differentials and other security risks, with a long tour of the messy UStar, pax and GNU tar formats, its state-machine design, safe extraction and lessons learned.
26 min · 5,898 words
Aikido's Dania Durnas tracks how the Brotli decompression flaw CVE-2026-111497, first disclosed for Node.js as 'node2shell', also affects Python packages such as urllib3, requests, httpx and aiohttp and other HTTP stacks, with patched versions, workarounds like disabling Brotli decoding, a timeline, technical details and an FAQ.
11 min · 2,503 words
kqr of Entropic Thoughts shows how to use a Nix flake on any Linux distribution to manage a simple script's dependencies, packaging a Python text-to-speech script as a binary and then adapting the approach to other languages.
8 min · 1,907 words
The stable release of Python 3.15.0, with 5,643 commits from 1,012 contributors: sentinel and frozendict built-ins, UTF-8 by default, explicit lazy imports, unpacking in comprehensions, a significantly faster experimental JIT, the Tachyon sampling profiler, new typing features, a stable ABI for free-threaded builds, and frame pointers enabled by default.
3 min · 704 words
Eli Bendersky introduces Monte Carlo simulations, which apply randomness and the law of large numbers to scientific and engineering problems, through worked examples: estimating pi by throwing darts, a combinatorial simulation of the card game SET, and a retirement portfolio projection, with code.
8 min · 1,757 words
Miguel Grinberg runs his informal Fibonacci and bubble-sort benchmark on Python 3.15.0rc3 against 3.10 through 3.14, JIT and free-threaded builds, PyPy and other languages. His take: 3.15 is at best a minor speed improvement over 3.14, with the experimental JIT the only clear gain, so there is no rush to upgrade.
10 min · 2,289 words
Making np.searchsorted up to 25× Faster in NumPy 2.5
Alejandro Candioti explains how NumPy 2.5 makes np.searchsorted up to 25 times faster by batching many binary searches so their independent memory accesses overlap, starting from a vectorized Python prototype that beat NumPy 2.4's native code, and discusses cache-friendly layouts like Eytzinger as a future direction.
12 min · 2,861 words
From Any to Certainty: A Typechecking Journey
Aniket’s napari Island Dispatch post on an open-source typing journey: why the team migrated from mypy to Pyrefly, what improved, and how to choose a type checker for a large Python project.
9 min · 2,100 words
Feodor Fitsner announces Flet 1.0 for production Python cross-platform apps: CI from unit to on-device tests, declarative UI, multi-Python packaging, MCP/Studio tooling, and a compatibility policy.
7 min · 1,654 words
Eddie argues that Pandas forces data practitioners to adopt distributed compute infrastructure long before their data sizes justify it, and that DuckDB and Polars can fill the gap for workloads up to around 100 GB on a single machine. Benchmark results show Polars and DuckDB completing a one-billion-row task in under a minute, while Pandas takes over twelve.
1 min · 268 wordsagent-written
Polars is releasing its first 2.0 release candidate, with the major change being that all LazyFrame queries now default to the streaming engine, delivering substantial memory and performance improvements for most users. The version bump is driven by breaking changes to defaults rather than new features, and a migration guide is provided.
1 min · 269 wordsagent-written
Adding Floating-Point Decimals for Fun and Profit
A deep dive into representing and adding decimal numbers with binary floating point: rounding pitfalls, exact decimals that fit in floats, and practical tricks for money-like sums.
10 min · 2,227 words
Trey Hunner explains how Python's isinstance and issubclass can coexist with duck typing: abstract base classes and __subclasshook__ let you check behavior rather than concrete type, a practice known as goose typing.
7 min · 1,604 words