A new release of Python is always cause for celebration, and acknowledgment of all the effort that’s been poured into the language by volunteers from all around the world.
In this video course, you’ve seen new features and improvements like:
- Better error messages with more informative tracebacks
- Faster code execution due to many efforts in the Faster CPython project
- Task and Exception groups that simplify working with asynchronous code
- Several new typing features improving Python’s static typing support
- Native TOML support for working with configuration files
You may not be able to take advantage of all the features right away. Still, you should strive to test your code on Python 3.11 to make sure your code is future ready. Do you notice any speed up? Share your experience in the comments below.
If you’d like to learn more about the concepts in this course, check out:
- Python 3.11 release notes
- PEP 617 - PEG Parser
- Mark Shannon @ EuroPython 2022
- Brandt Bucher @ Talk Python
- Guido and Mark @ Talk Python
- Better Exceptions Library
- TOML specification
- tomli as a backport
- TOML Kit, for writing with style preservation
- Python and TOML: New Best Friends
- Async IO in Python: A Complete Walkthrough (tutorial)
- Async IO in Python: A Complete Walkthrough (course)
- Speed Up Your Python Program With Concurrency (tutorial)
- Speed Up Your Python Program With Concurrency (course)
- Python Type Checking (Guide) (tutorial)
- Python Type Checking (Guide) (course)
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.
marcinszydlowski1984 on Oct. 26, 2022
can you talk more about the “Self” keyword or put a better example of it? The official documentation just mention this but there’s no advanced examples. Is it just a syntactic sugar? The same effect we can get using the __future__ built-in package:
This works for every type of method, no matter it is an instance method (built-in or custom), @classmethod or @staticmethod.