Python 3.15 adds extra_items to TypedDict to specify the value type of additional keys. The article demonstrates a Movie type with fixed title and year fields that also accepts extra string values.
Related articles
See all→- uv

Managing Python Projects With uv: An All-in-One Solution
Real Python introduces uv as a Rust-based Python package and project manager covering dependency installation, Python versions, virtual environments, and package publishing. The excerpt also outlines installation options and cautions that its interactive timing comparison is illustrative.
realpython.com·Added
- ChromaDB

ChromaDB: Embeddings and Vector Databases in Python
Real Python introduces embeddings and vector databases with ChromaDB, explaining how relevant documents can provide context for LLMs. The supplied excerpt covers vector fundamentals and NumPy operations; the tutorial targets ChromaDB 1.5 and Python 3.12+.
realpython.com·Added
- Python

Python Protocols: Leveraging Structural Subtyping
Real Python explains how Protocol enables structural subtyping and static duck typing in Python. The excerpt distinguishes internal protocols from Protocol-based type contracts and introduces compatibility based on methods and attributes rather than inheritance.
realpython.com·Added
- DuckDB

Gems of DuckDB 2.0.0
DuckDB 2.0.0 introduces major features like the Quack protocol and asynchronous I/O, along with many usability improvements such as a Python appender for efficient data insertion and enhanced CLI commands. For full details, visit the "What's New in the Docs for 2.0" page.
duckdb.org·Added
- Python

Python Code Quality: Best Practices and Tools
Real Python explains why code quality goes beyond functionality, covering readability, maintainability, efficiency, and security. It highlights clear naming, consistent style, testing, and tools such as linters, formatters, and static type checkers.
realpython.com·Added
- releases

Python 3.15.2, 3.14.10, 3.13.18, 3.12.16 and 3.11.18 are out
Python 3.15.2, 3.14.10, 3.13.18, 3.12.16 and 3.11.18 are expedited security releases that distrust compromised eMudhra intermediate CA keys.
blog.python.org·Added