Python 3.10 development has stabilized and we can finally test out all of the new features that will be included in the final release. We’ll cover some of the most interesting additions to Python — structural pattern matching, parenthesized context managers, more typing, and the new and improved error messages. Check out the video version of the article here: Structural pattern matching Structural pattern matching is an incredible feature to be added to Python — truly awesome. Imagine an if-else statement that looks like this: You take that and you modify the syntax so it looks more like this:…
This story continues at The Next Web
from The Next Web https://ift.tt/3yhUEVu