Python 3.9
https://abs.twimg.com/emoji/v2/... draggable="false" alt="🐍" title="Schlange" aria-label="Emoji: Schlange"> is out!
https://abs.twimg.com/emoji/v2/... draggable="false" alt="🥳" title="Partying face" aria-label="Emoji: Partying face">
Here are the 5 new features you care about.
https://abs.twimg.com/emoji/v2/... draggable="false" alt="🧵" title="Thread" aria-label="Emoji: Thread">
https://abs.twimg.com/emoji/v2/... draggable="false" alt="👇" title="Rückhand Zeigefinger nach unten" aria-label="Emoji: Rückhand Zeigefinger nach unten">
Here are the 5 new features you care about.
There& #39;s a new operator "|" that can be used to merge two dictionaries.
See PEP 584 for more information: https://www.python.org/dev/peps/pep-0584/
Another new operator "|=" will let you update dictionaries.
See PEP 584 for more information: https://www.python.org/dev/peps/pep-0584/
There are two new methods added to the str object to remove the prefix and suffix of the string.
We don& #39;t need to rely anymore on a much more fragile approach like slicing to do this.
For more info: https://www.python.org/dev/peps/pep-0616
You can now use list or dict built-in collection types as generics in the signature of a function.
This makes the code much more readable and explicit.
More information: https://www.python.org/dev/peps/pep-0585
Why do you care? Well, this parser is much more flexible than the old one, and it will pay off dividends starting with Python 3.10.
More information here: https://www.python.org/dev/peps/pep-0617
There are many other changes and improvements. This includes new modules and several fixes across the language.
You can take a look at the full release notes here: https://docs.python.org/3.9/whatsnew/3.9.html">https://docs.python.org/3.9/whats...
You can take a look at the full release notes here: https://docs.python.org/3.9/whatsnew/3.9.html">https://docs.python.org/3.9/whats...
Read on Twitter
Merging dictionariesThere& #39;s a new operator "|" that can be used to merge two dictionaries.See PEP 584 for more information: https://www.python.org/dev/peps/... class="Emoji" style="height:16px;" src=" " title="https://abs.twimg.com/emoji/v2/... draggable="false" alt="1⃣" title="Tastenkappe Ziffer 1" aria-label="Emoji: Tastenkappe Ziffer 1"> Merging dictionariesThere& #39;s a new operator "|" that can be used to merge two dictionaries.See PEP 584 for more information: https://www.python.org/dev/peps/... class="Emoji" style="height:16px;" src=" " class="img-responsive" style="max-width:100%;"/>
Updating dictionariesAnother new operator "|=" will let you update dictionaries.See PEP 584 for more information: https://www.python.org/dev/peps/... class="Emoji" style="height:16px;" src=" " title="https://abs.twimg.com/emoji/v2/... draggable="false" alt="2⃣" title="Tastenkappe Ziffer 2" aria-label="Emoji: Tastenkappe Ziffer 2"> Updating dictionariesAnother new operator "|=" will let you update dictionaries.See PEP 584 for more information: https://www.python.org/dev/peps/... class="Emoji" style="height:16px;" src=" " class="img-responsive" style="max-width:100%;"/>
Removing the prefix and suffix of a stringThere are two new methods added to the str object to remove the prefix and suffix of the string.We don& #39;t need to rely anymore on a much more fragile approach like slicing to do this.For more info: https://www.python.org/dev/peps/... class="Emoji" style="height:16px;" src=" " title="https://abs.twimg.com/emoji/v2/... draggable="false" alt="3⃣" title="Tastenkappe Ziffer 3" aria-label="Emoji: Tastenkappe Ziffer 3"> Removing the prefix and suffix of a stringThere are two new methods added to the str object to remove the prefix and suffix of the string.We don& #39;t need to rely anymore on a much more fragile approach like slicing to do this.For more info: https://www.python.org/dev/peps/... class="Emoji" style="height:16px;" src=" " class="img-responsive" style="max-width:100%;"/>
Type hinting for built-in generic typesYou can now use list or dict built-in collection types as generics in the signature of a function.This makes the code much more readable and explicit.More information: https://www.python.org/dev/peps/... class="Emoji" style="height:16px;" src=" " title="https://abs.twimg.com/emoji/v2/... draggable="false" alt="4⃣" title="Tastenkappe Ziffer 4" aria-label="Emoji: Tastenkappe Ziffer 4"> Type hinting for built-in generic typesYou can now use list or dict built-in collection types as generics in the signature of a function.This makes the code much more readable and explicit.More information: https://www.python.org/dev/peps/... class="Emoji" style="height:16px;" src=" " class="img-responsive" style="max-width:100%;"/>