Migrating Python 2 to Python 3
Python 3 has been out for over a decade and is widely used around the world. In this course, you will learn how to migrate from Python 2 to Python 3 and how to benefit from Python 3's improved features and performance.
What you'll learn
At the core of a successful migration from Python 2 to 3 is a thorough knowledge of the differences, the strategies, and common pitfalls. In Migrating Python 2 to 3, you will learn how to assess your application and phase a migration without losing functionality or performance. First, you will learn what changed in Python 3 and how to update Python 2 code to be compatible. Next, you will explore strategies for migrating an application and how to phase the upgrade. Finally, you will discover how to leverage Python 3 features to accelerate the performance of your application. When you are finished with this course, you will have a foundational knowledge of Python 3 that will help you as you move forward to migrate any application from Python 2 to 3.
Table of contents
- Changes to Core Types 1m
- Changes to Strings in Python 3 2m
- Understanding Python 3 Strings in Detail 3m
- Python 2 and 3 String Types 2m
- String Literals 3m
- Strategies for Strings in Migrations 3m
- Changes to Dictionaries in Python 3 2m
- Upgrading Dictionaries to Python 3 1m
- Changes to Numeric Types in Python 3 2m
- Upgrading the Application 6m
- Testing Changes Across Python Versions 3m
- Completing the Migration 2m
- Standard Library Changes 2m
- What Moved in the Standard Library? 3m
- Exception Handling in Python 3 3m
- Changes in HTTP and URL Handling 3m
- Temporary Files and Directories in Python 3 1m
- Changes in XML Handling 1m
- Changes to the Email Module 1m
- Python Object Serialization with Pickle 3m
- Automatically Handling PEP3108 2m
- Pathlib Module 2m