Skip to content

Instantly share code, notes, and snippets.

@verdimrc
Created January 5, 2024 02:53
Show Gist options
  • Save verdimrc/88055e4ede6113d9f856d128969ebd9b to your computer and use it in GitHub Desktop.
Save verdimrc/88055e4ede6113d9f856d128969ebd9b to your computer and use it in GitHub Desktop.
Python: selected new features to learn
NOTE: also check additional changes in typing across major python versions.
- 312 pep669: new debugging/profiling API
- 312 pep684: C-API for per-interpreger GIL -> low-level features.
* Py-API expected for 313.
- 312 @override decorator for methods
- 312 pep701: more flexible f-string parsing
- 311 typing: Self type
- 311 exception groups, except*
- 311 pep678: enrich exceptions with notes
- 310 parenthesized ctx mgr
- 310 structural pattern patching
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment