Python 3.11 New Features — ELI5

Imagine your favourite video game got a speed update — everything loads faster, the tutorials explain mistakes better, and you can now fight multiple bad guys at the same time instead of one by one. That’s basically what Python 3.11 did.

Way faster. Python 3.11 runs programs 10–60% faster than 3.10 without you changing a single line of code. It’s like upgrading from a bicycle to an electric scooter — same route, less effort. A team at Microsoft led by Mark Shannon spent years on this speedup, and it just works.

Error messages got even better. Python 3.10 started pointing at the right line when something broke. Python 3.11 goes further — it now points at the exact part of the line. If you write result = a + b / c and c is zero, the little arrow points right at b / c, not the whole line. No more guessing which piece caused the problem.

Exception groups. Sometimes multiple things go wrong at the same time — like when you send requests to five websites and three of them fail. Before 3.11, Python could only throw one error at a time, so you’d lose information about the other failures. Now, ExceptionGroup bundles them together, and except* lets you catch specific ones out of the bundle.

TOML reading built in. TOML is a popular format for configuration files (like settings for your project). Before 3.11, you needed to install an extra package to read them. Now tomllib comes included.

The one thing to remember: Python 3.11 was the “make everything better” release — faster code, clearer errors, and smarter error handling, all for free.

pythonpython311release-features

See Also

  • Python 310 New Features Python 3.10 gave programmers a shape-sorting machine, friendlier error messages, and cleaner ways to say 'this or that' in type hints.
  • Python 312 New Features Python 3.12 made type hints shorter, f-strings more powerful, and started preparing Python's engine for a world without the GIL.
  • Python 313 New Features Python 3.13 finally lets multiple tasks run at the same time for real, added a speed booster engine, and gave the interactive prompt a colourful makeover.
  • Python Exception Groups Python's ExceptionGroup is like getting one report card that lists every mistake at once instead of stopping at the first one.
  • Python Free Threading Nogil Python has always had a rule that only one thing can happen at a time — free threading finally changes that, like opening extra checkout lanes at the grocery store.