The Real Python Podcast

Exploring the New Features of Python 3.9


Listen Later

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.

Topics:

  • 00:00:00 – Introduction
  • 00:02:02 – Proper Time Zone support
  • 00: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 zones
  • 00:10:48 – New operators for updating dictionaries
  • 00:15:44 – Geir Arne’s PyCon 2020 decorators tutorial
  • 00:18:02 – Changes to decorator syntax
  • 00:24:08 – Annotated type hints
  • 00:32:36 – Video Course Spotlight
  • 00:33:26 – The PEG parser
  • 00:37:51 – Potential for new enhancements in upcoming releases
  • 00:42:40 – String methods to remove prefixes and suffixes
  • 00:44:22 – Type hint lists and dictionaries directly
  • 00:47:29 – Topological Sort
  • 00:52:03 – Greatest Common Divisor (GCD) and Least Common Multiple (LCM)
  • 00:53:50 – New HTTP status codes
  • 00:58:29 – Should you upgrade?
  • 01:07:58 – Potential issue with Python 3.10 versioning
  • 01: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 goodbyes
  • Show Links:

    • Python 3.9: Cool New Features for You to Try: Real Python article
    • Cool New Features in Python 3.9: Real Python video course
    • dateutil - Powerful extensions to datetime
    • Paul Ganssle: Blog
    • IANA - Internet Assigned Numbers Authority: Time Zone Database
    • Dictionaries in Python: Real Python article
    • PEP 584 – Add Union Operators To dict: python.org
    • Primer on Python Decorators: Real Python article
    • PEP 614 – Relaxing Grammar Restrictions On Decorators: python.org
    • Introduction to Decorators: Power Up Your Python Code - PyCon 2020 Online Tutorial
    • Python Type Checking (Guide) - Annotations:Real Python article
    • PEP 484 – Type Hints: python.org
    • PEP 593 – Flexible function and variable annotations: python.org
    • PEP 617 – New PEG parser for CPython: python.org
    • PEG Parsing Series Overview: Guido van Rossum
    • PEP 622 – Structural Pattern Matching: python.org
    • PEP 616 – String methods to remove prefixes and suffixes: python.org
    • PEP 585 – Type Hinting Generics In Standard Collections: python.org
    • Topological sorting: Wikipedia article
    • graphlib — Functionality to operate with graph-like structures: docs.python.org
    • Greatest common divisor: Wikipedia article
    • Least common multiple: Wikipedia article
    • Hypertext Transfer Protocol (HTTP) Status Code Registry
    • Hyper Text Coffee Pot Control Protocol (HTCPCP/1.0)
    • PEP 602 – Annual Release Cycle for Python: Łukasz Langa - python.org
    • Porting to Python 3.9: docs.python.org
    • CPython Internals: Your Guide to the Python3 Interpreter
    • Panel: A high-level app and dashboarding solution for Python
    • PyQt: GUI Library
    • Pandas
    • Python and PyQt: Building a GUI Desktop Calculator - Real Python article
    • GIS in Python
    • GeoPandas
    • Level up your Python skills with our expert-led courses:

      • Python Decorators 101
      • Cool New Features in Python 3.9
      • Python Type Checking
      • Support the podcast & join our community of Pythonistas

        ...more
        View all episodesView all episodes
        Download on the App Store

        The Real Python PodcastBy Real Python

        • 4.7
        • 4.7
        • 4.7
        • 4.7
        • 4.7

        4.7

        138 ratings


        More shows like The Real Python Podcast

        View all
        Software Engineering Radio - the podcast for professional software developers by se-radio@computer.org

        Software Engineering Radio - the podcast for professional software developers

        271 Listeners

        The Changelog: Software Development, Open Source by Changelog Media

        The Changelog: Software Development, Open Source

        284 Listeners

        Thoughtworks Technology Podcast by Thoughtworks

        Thoughtworks Technology Podcast

        41 Listeners

        Talk Python To Me by Michael Kennedy

        Talk Python To Me

        583 Listeners

        Software Engineering Daily by Software Engineering Daily

        Software Engineering Daily

        624 Listeners

        Super Data Science: ML & AI Podcast with Jon Krohn by Jon Krohn

        Super Data Science: ML & AI Podcast with Jon Krohn

        297 Listeners

        Python Bytes by Michael Kennedy and Brian Okken

        Python Bytes

        214 Listeners

        Data Engineering Podcast by Tobias Macey

        Data Engineering Podcast

        141 Listeners

        Machine Learning Guide by OCDevel

        Machine Learning Guide

        770 Listeners

        Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

        Syntax - Tasty Web Development Treats

        986 Listeners

        CoRecursive: Coding Stories by Adam Gordon Bell - Software Developer

        CoRecursive: Coding Stories

        190 Listeners

        DataFramed by DataCamp

        DataFramed

        271 Listeners

        Practical AI by Practical AI LLC

        Practical AI

        188 Listeners

        The Stack Overflow Podcast by The Stack Overflow Podcast

        The Stack Overflow Podcast

        63 Listeners

        The Pragmatic Engineer by Gergely Orosz

        The Pragmatic Engineer

        63 Listeners