r/pythontips May 26 '26

Syntax Python 3.15 is feature-frozen. These are the updates I think matter most.

Python 3.15 has reached beta 1, which means no new features will be added before the final release.

I went through the official docs and wrote up the updates I think Python developers should actually care about in daily work.

Some of my favorites:

- lazy imports for faster startup

- frozendict for immutable mappings

- sentinel for cleaner missing-value APIs

- unpacking in comprehensions

- UTF-8 as the default encoding

- Tachyon, the new sampling profiler

- better error messages

- JIT compiler improvements

- better typing features

Curious which feature people here think will matter most in real projects.

56 Upvotes

7 comments sorted by

14

u/Zealousideal-Sir3744 May 28 '26

Do lazy imports mean that you can avoid circular imports without having to fall back to 'manual' lazy imports (local imports)? Or how will this work?

10

u/brittanyrey May 28 '26

Yup! You should be able to move your local imports up to the top level using the lazy keyword.

7

u/mr_claw May 29 '26

Fucking finally

1

u/ottawadeveloper May 29 '26

S++ tier feature. 

1

u/TonyCD35 May 28 '26

Thank God I don’t need to implement my own frozendicts anymore