Python 2 to 3: How to Upgrade and What Features to Start Using
summary
Python 2 reaches end of life in 2020 and upgrade strategy choices—gradual (support 2 and 3), sudden (switch at once), or rewrite—are compared with concrete tooling: recommends compatibility libraries future and six and conversion tools futurize and modernize, while 2to3 fits sudden migrations. Highlights usable Python 3 features like f-strings and data classes (3.7), underscores in numeric literals, star unpacking, print as a function, and no-arg super. Warns Unicode (text vs bytes) forces manual fixes and demands a repeatable testing process; automated tools help but never finish the job.
AI-written summary · about
chapters (4)
- 0:00Start
- 9:26Gradual Migration Strategy
- 12:51Compatibility libraries
- 21:14The automated conversion tools won't solve all your problems
related talks
44mHow to Build a Plan to Migrate to Python 3
41mYou should switch to Python 3 (two years ago)
01h 12mPython 3: the Next Generation (is here already)
31mPython 3 for People Who Haven't Been Paying Attention
45mWriting Python 2/3 compatible code
31mIntroduce Syntax and History of Python from 2.4 to 3.6
26mPython 2 is dead! Drag your old code into the modern age
32mHow (not) to upgrade a platform
