How to Build a Plan to Migrate to Python 3

Опубликовано: 07 Октябрь 2024
на канале: PyOhio
358
3

Philip Semanchuk

https://pyohio.org/2018/schedule/pres...

Many organizations haven't yet made the switch to Python 3. Time is running out for them since **Python 2 will no longer be supported past 2020**. Organizations with larger projects to migrate will need to start very soon in order to meet the deadline.

Migrating from 2 to 3 can seem overwhelming, but it doesn't have to be if you **make a plan, take it step by step, and use the right tools**. What's more, there's a great deal you can do immediately (while still in Python 2) to make your code more compatible with Python 3.

*This talk is for anyone facing a 2-to-3 migration that they'd like to feel more confident about.* The talk will discuss five areas of focus -- choosing a Python 3 version, identifying test gaps, reviewing dependencies, prepping one's code for Python 3, and the actual switchover. I'll discuss strengths and weaknesses of the tool `caniusepython3` for assessing dependencies. I'll also go into a fair amount of detail on Python's tool `2to3`, including how (and when) to use it effectively.

*Attendees will leave confident that the migration is manageable.* They'll have the outline of a plan, some specific areas on which to focus, a knowledge of helpful tools, and links to resources they can use after the talk.

===
https://pyohio.org

A FREE annual conference for anyone interested in Python in and around Ohio, the entire Midwest, maybe even the whole world.