#355: Python 3.12 is Out!
About the show
Sponsored by us! Support our work through:
Connect with the hosts
Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Tuesdays at 11am PT. Older video versions available there too.
Michael #1: 3.12 is out!
- What’s new
- PEP 695, type parameter syntax and the type statement
- PEP 692, using TypedDict to annotate **kwargs
- PEP 698, typing.override() decorator
- PEP 701, f-strings in the grammar
- PEP 684, a unique per-interpreter GIL
- PEP 669, low impact monitoring
- Improved ‘Did you mean …’ suggestions for NameError, ImportError, and SyntaxError exceptions
- PEP 688, using the buffer protocol from Python
- The pathlib.Path class now supports subclassing
- The os module received several improvements for Windows support
- A command-line interface has been added to the sqlite3 module
- isinstance() checks against runtime-checkable protocols enjoy a speed up of between two and 20 times
- The asyncio package has had a number of performance improvements, with some benchmarks showing a 75% speed up.
- A command-line interface has been added to the uuid module
- Due to the changes in PEP 701, producing tokens via the tokenize module is up to up to 64% faster.
- PEP 683, immortal objects
- PEP 709, comprehension inlining
Michael #3: Python Developers Survey 2022 Results
- I did a “first reactions” video too
- The Complete pytest Course is now at courses.pythontest.com
- Still on Teachable, just with a custom domain
- Also, just released Chapter 8 today.
Joke: Thought it would be easy