Towards Data Science By Thomas Reid

Python 3.15 Has a New Profiler

Read the original on Towards Data Science →

The article discusses the new profiler introduced in Python 3.15, highlighting its capabilities compared to the existing cProfile tool. It explains what the new profiler can detect that cProfile misses, providing insights into performance analysis improvements. The post was originally published on Towards Data Science.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at Towards Data Science.

Simon Willison
Oct 13

web-edit 0.1a1

The article announces the release of web-edit version 0.1a1. It highlights performance optimizations that were written by Claude Opus 5.5, which were generated after feeding it a Python 3.15 profiling report created by GPT‑6 Astra. The release is tagged with "profiling" and "projects".

Simon Willison
Oct 12

Hello Python 3.15, goodbye 3.10, and now I can use 3.11

Python 3.15 introduces several new features, notably explicit lazy imports from PEP 810 that delay module loading until first use, and unpacking syntax in comprehensions (PEP 798) that simplifies flattening lists, sets, and dictionaries. The release also updates the profiling tools, renaming the tracing profiler to profiling.tracing and adding a new sampling profiler, profiling.sampling. These changes aim to improve performance and developer ergonomics in Python code.

Simon Willison
6d ago

If in doubt, delete the uv.lock file

The article explains that when using the uv package manager with Python 3.15, developers sometimes encounter dependency errors because uv.lock files pin versions that lack compatible wheels. The author advises a simple workaround: if a test run fails due to such a mismatch, delete the uv.lock file and rerun the tests. This practice is common in library projects where uv.lock files are ignored in version control.

Simon Willison
Aug 24

llm-anthropic 0.27

The release of llm‑anthropic 0.27 updates the Anthropic plugin for LLM to be compatible with the newly released anthropic v1.0.0 Python library, which has switched from httpx to httpx2. This mirrors a similar change made by OpenAI in their v3.0.0 release two weeks prior. The update includes a migration guide and a pull request that ensures tests pass after upgrading to anthropic>=1.