Python 3.9 has arrived! This week on the show, former guest and Real Python author Geir Arne Hjelle returns to talk about his recent article, “Python 3.9: Cool New Features for You to Try”. Also joining the conversation is Real Python video course instructor and author Christopher Trudeau. Christopher has created a video course, which was released this week also, based on Geir Arne’s article. We talk about time zones, merging dictionaries, the new parser, type hints, and more.
Geir Arne and Christopher not only cover the new features, but they also offer advice about ways you might incorporate them into your code. We discuss what you should think about before updating your code.
Course Spotlight: Cool New Features in Python 3.9
In this course, you’ll explore some of the coolest and most useful features in the newly released Python 3.9. You’ll learn how Python 3.9 makes it easier to work with time zones, dictionaries, decorators, and several other techniques that will make your code cleaner and more efficient.
00:00:00 – Introduction00:02:02 – Proper Time Zone support00:05:38 – What to do if your OS does not have tzdata?00:07:11 – How do you add time zone info to your Python code?00:08:24 – Historic changes to time zones00:10:48 – New operators for updating dictionaries00:15:44 – Geir Arne’s PyCon 2020 decorators tutorial00:18:02 – Changes to decorator syntax00:24:08 – Annotated type hints00:32:36 – Video Course Spotlight00:33:26 – The PEG parser00:37:51 – Potential for new enhancements in upcoming releases00:42:40 – String methods to remove prefixes and suffixes00:44:22 – Type hint lists and dictionaries directly00:47:29 – Topological Sort00:52:03 – Greatest Common Divisor (GCD) and Least Common Multiple (LCM)00:53:50 – New HTTP status codes00:58:29 – Should you upgrade?01:07:58 – Potential issue with Python 3.10 versioning01:10:18 – What are you excited about in the world of Python?01:12:52 – What do you want to learn next?01:14:08 – Thanks and goodbyesPython 3.9: Cool New Features for You to Try: Real Python articleCool New Features in Python 3.9: Real Python video coursedateutil - Powerful extensions to datetimePaul Ganssle: BlogIANA - Internet Assigned Numbers Authority: Time Zone DatabaseDictionaries in Python: Real Python articlePEP 584 – Add Union Operators To dict: python.orgPrimer on Python Decorators: Real Python articlePEP 614 – Relaxing Grammar Restrictions On Decorators: python.orgIntroduction to Decorators: Power Up Your Python Code - PyCon 2020 Online TutorialPython Type Checking (Guide) - Annotations:Real Python articlePEP 484 – Type Hints: python.orgPEP 593 – Flexible function and variable annotations: python.orgPEP 617 – New PEG parser for CPython: python.orgPEG Parsing Series Overview: Guido van RossumPEP 622 – Structural Pattern Matching: python.orgPEP 616 – String methods to remove prefixes and suffixes: python.orgPEP 585 – Type Hinting Generics In Standard Collections: python.orgTopological sorting: Wikipedia articlegraphlib — Functionality to operate with graph-like structures: docs.python.orgGreatest common divisor: Wikipedia articleLeast common multiple: Wikipedia articleHypertext Transfer Protocol (HTTP) Status Code RegistryHyper Text Coffee Pot Control Protocol (HTCPCP/1.0)PEP 602 – Annual Release Cycle for Python: Łukasz Langa - python.orgPorting to Python 3.9: docs.python.orgCPython Internals: Your Guide to the Python3 InterpreterPanel: A high-level app and dashboarding solution for PythonPyQt: GUI LibraryPandasPython and PyQt: Building a GUI Desktop Calculator - Real Python articleGIS in PythonGeoPandasLevel up your Python skills with our expert-led courses:
Python Decorators 101Cool New Features in Python 3.9Python Type Checking Support the podcast & join our community of Pythonistas