Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Astral 11 min read Release mediumAdept

Python 3.15

Python 3.15 adds a `lazy` import keyword (PEP 810), a stdlib `profiling` module with the low-overhead Tachyon sampling profiler, new typing features (closed/extra_items TypedDicts, TypeForm), `sentinel` and `frozendict` builtins, and `*`/`**` unpacking in comprehensions. Ruff v0.17 adds lint rules TID254 and TID255 for enforcing and validating import laziness. uv gains a preview flag that makes build-backend imports lazy, speeding wheel builds by up to 18%. Windows x86-64 builds get 15-20% pyperformance gains from the Clang tail-call interpreter, ARM64 builds become the default on Windows ARM, and Ruff's default target moves to 3.11 as Python 3.10 reaches end of life.

Related posts

  • Meta contributes new features to Python 3.12

    Meta Engineering mediumAdept

    Meta upstreamed several features into CPython 3.12, many derived from its Cinder runtime: immortal objects (PEP 683) that skip reference counting to cut copy-on-write memory in forked Instagram workers, the @typing.override decorator (PEP 698), and inlined comprehensions (PEP 709) running up to 2x faster. Other changes include opt-in eager asyncio tasks that resolve immediately-available results without event-loop scheduling, a LOAD_SUPER_ATTR opcode that avoids allocating super objects, and new async_tree and comprehension benchmarks in pyperformance. New runtime hooks, including vectorcall entrypoints, dict/type/function/code watchers, and a thread-safe perf-map API, let third-party JITs like CinderX plug into CPython.

  • Making Python in Zed Fun

    Zed easyNovice

    Zed reworked its Python support around a generic per-language toolchain selector backed by Microsoft's python-environment-tools, the same library Visual Studio Code uses for venv detection. A manifest tree tracks the nearest pyproject.toml so each monorepo sub-project gets its own toolchain. Zed also runs a separate language server per toolchain rather than making servers juggle multiple environments. Basedpyright is now the default LSP, ty and Ruff work out of the box, Pyrefly is available via an extension, and the team plans to move Astral's ty into core and add notebooks in 2026.

  • Zed Weekly: #18

    Zed easyNovice

    Zed's semantic index now batches embedding requests by token count rather than span count, cutting OpenAI requests and improving throughput and consistency. A new embeddings cache skips re-embedding unchanged tree-sitter spans and reduces incremental indexing tokens by about 75%. The first inline AI assistant has merged. Other updates: Tailwind completions using multiple language servers per file, automatic Python virtualenv activation in v0.102, reconnection handling for collaborative channel notes, rust-analyzer inlay hint fixes, and progress on replace-in-buffer search.

  • Python Typing Survey 2025: Code Quality and Flexibility As Top Reasons for Typing Adoption

    Meta Engineering easyNovice

    The 2025 Typed Python Survey (1,241 respondents, mostly experienced developers) finds 86% use type hints always or often, with adoption peaking at 93% among developers with 5–10 years of Python experience and lowest (80%) among 10+ year veterans. Respondents value gradual adoption, readability, IDE support and bug prevention, but struggle with poorly typed third-party libraries (NumPy, Pandas, Django), complex generics and variance, and inconsistencies between type checkers. Mypy remains the most used checker at 58% (down from 61%), while Rust-based checkers Pyrefly, Ty and Zuban together reach over 20%. Top feature requests are TypeScript-style intersection, mapped and conditional types, runtime enforcement, higher-kinded types and ADTs, and a fast official type checker.

  • Lazy is the new fast: How Lazy Imports and Cinder accelerate machine learning at Meta

    Meta Engineering easyNovice

    Meta rolled out the Cinder Python runtime with Lazy Imports, which transparently defers all imports until first use, across ML frameworks and Jupyter kernels. The change cut time to first batch (TTFB) by up to 40 percent and Jupyter kernel startup by 20 percent. Unlike importlib's LazyLoader, it needs no hand-picked lazy imports and removes the need for TYPE_CHECKING guards. Libraries such as PyTorch, NumPy, SciPy and Numba broke because they depend on import side effects and ordering, so Meta enables lazy imports only during startup and preparation and turns them off before the first batch.

The quest for software engineering knowledge.

Look:
Layout: