Join Steven Lott for an in-depth discussion in this video Next steps, part of Migrating from Python 2.7 to Python 3.
- [Narrator] I hope that you've decided it's time…to migrate your codebase from Python 2 to Python 3.…I've shown almost all the changes that need to be made…and I hope I've also provided some assurance…that most of your code will not have to change dramatically.…I see three measurable benefits from using Python 3.…First, and most importantly,…Python 3 is a lot faster than Python 2.…In the early days of Python 3.5,…I collected the what's new documents…and counted almost 40 different places…where performance has been improved.…
Python 3.6 adds even more improvements to this list.…Second, Python 3 is bigger, it adds at least…a dozen new packages to the standard library.…New packages like enum, pathlib…and statistics are extremely helpful.…Third, Python 3 is internally simpler.…This means that it removes…some quirky behaviors of Python 2.…As one example, the complete separation…of Unicode text from sequences of bytes…can help prevent bugs from arising.…
There are two potential benefits to doing a migration.…One is the opportunity to improve code quality.…
Author
Released
3/24/2017- Reviewing the differences between the two versions
- Reviewing the syntax changes introduced with Python 3
- Understanding the changes to built-in functions
- Reviewing the most important changes to the Python standard library
- Understanding which tools are required to migrate from Python 2.7 to Python 3
- Using six to handle class definitions
- Using six with standard library changes
- Using future
- Making syntax changes and class changes with futurize
- Using 2to3 or modernize
Skill Level Intermediate
Duration
Views
Related Courses
-
Code Clinic: Python
with Barron Stone2h 23m Intermediate -
Python: Design Patterns
with Jungwoo Ryoo1h 59m Intermediate -
Learning S.O.L.I.D. Programming Principles
with Steven Lott1h 45m Intermediate
-
Introduction
-
Welcome49s
-
-
1. Python 2.7 and Python 3
-
Introduction to the course4m 21s
-
Overview of the differences7m 47s
-
The official how-to guide5m 48s
-
-
2. Feature Comparisons
-
The language syntax changes9m 34s
-
-
3. Three Plus One Strategies
-
Coexistence: 2to3 and 3to24m 22s
-
4. Using Six
-
Syntax wrapping with six5m 26s
-
5. Using Python-Future
-
6. Using 2to3 or Modernize
-
Final thoughts6m 35s
-
Conclusion
-
Next steps1m 52s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Next steps