Part 1: Getting Started with Python 3.12 - Setup, pyproject.toml, and Language Features
Introduction
Why Python 3.12?
Installing Python 3.12
macOS
Linux (Ubuntu/Debian)
Windows
Project Setup
Virtual Environment
Modern pyproject.toml
pyproject.tomlPython 3.12 Language Features I Actually Use
Better Error Messages
match Statement (Structural Pattern Matching, from 3.10+)
match Statement (Structural Pattern Matching, from 3.10+)Improved f-strings (3.12)
f-strings (3.12)Type Alias (type keyword, 3.12)
type keyword, 3.12)TypeVar with Default (3.13-preview, but typing_extensions backport works on 3.12)
TypeVar with Default (3.13-preview, but typing_extensions backport works on 3.12)Project Structure
__init__.py β The Package Entry Point
__init__.py β The Package Entry PointSummary
Topic
Takeaway
What's Next
Last updated