Porting from Python 2 to Python 3

Porting from Python 2 to Python 3
Porting from Python 2 to Python 3

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 1.5 Hours | 128 MB
eLearning | Skill level: Intermediate | by Ben Straub


Tips and Techniques for a Smooth Transition

In this Porting from Python 2 to Python 3 training course, expert author Ben Straub teaches you about the changes with Python 3, and how to make a smooth transition from Python 2 to Python 3. This course is designed for users that already have Python programming experience.

You will start by learning about numbers and strings. From there, Ben teaches you about exceptions, such as raising and catching, and tracebacks and chaining. This video tutorial also covers classes, IO, and library. Finally, you will learn other language changes, such as print, imports and reload, ranges, and functional operators.

Once you have completed this computer based training course, you will have learned all about Python 3 changes, and how to make a smooth transition from Python 2 to Python 3.

+

Table of Contents

Introduction
Course Introduction And What To Expect
About The Author

Overview
The Situation
Why Port At All?
Port Versus Polyglot
Helper Packages – 2to3, Futurize And Six
Automated Testing – Coverage, Tox, Caniusepython3

Numbers
Numbers Overview

Strings
Text Versus Binary
Unicode Strings And Characters
Byte Strings
Basestring, Interning And IO

Exceptions
Raising And Catching
Tracebacks And Chaining

Classes
Metaclasses
Iterators
STR And BOOL Methods

IO
Files – Open And Read
Input And Raw_input
ExecFile And StringIO

Library
Collections – Counter, Ordereddict, Userdict, Userlist And Userstring
DBM Modules
Commands And Subprocess
Web Libraries – Part 1
Web Libraries – Part 2
IterTools
Miscellaneous Libraries

Other Language Changes
Print
Repr
Imports And Reload
Dictionaries
Ranges
Functional Operators – Part 1
Functional Operators – Part 2

Conclusion
Wrap Up