Bite code! • 1590 implied HN points • 08 Dec 25
- A frozendict PEP proposing an immutable mapping type is back and looks likely to be accepted. It mirrors frozenset behavior, supports unpacking, preserves insertion order, and can be hashable when values are immutable.
- Unpacking in comprehensions is accepted for Python 3.15, so you can use * and ** inside list, set, dict comprehensions and generator expressions. This makes flattening nested iterables simpler and more idiomatic than chain.from_iterable or nested loops.
- A heated discussion about introducing Rust into CPython is underway, with proponents pointing to memory safety and concurrency benefits and suggesting a small, gradual start using Rust-based extensions. Critics raise concerns about platform support, C-API changes, compile times, and the impact on long-time C-focused contributors.