Loading…
DevConf.US '18 has ended
DevConf.us 2018 is the 1st annual, free, Red Hat sponsored technology conference for community project and professional contributors to Free and Open Source technologies held at the Boston University in the historic city of Boston, USA.

When: Friday, August 17 to Sunday, August 19, 2018

Venue: Boston University, George Sherman Union Building
Back To Schedule
Saturday, August 18 • 12:00pm - 12:35pm
Lessons learned by Migrating python2 projects to 3

Sign up or log in to save this to your schedule, view media, leave feedback and see who's attending!

Feedback form is now closed.
python2 will not be supported in the visible future.
However,existing script, projects need migrate to python3 while keeping compatibility with 2.
This is quite challenging work since almost all Python 2 programs require some modifications to run properly under 3.
We are working on avocado-vt and tp-libvirt projects migrating,and nearly 650 files were changed without interrupting production.
This talk will share our best practice experience and the pain points encountered:
1)Define migration strategies
2)Best Practices in idioms,including exceptions,importing,standard library numbers,dictionaries,Built-in Function change,etc...
3)Some automatic tools to help migration:sixer,2to3
4)Use virtualenv to set up validating environments
5)Special case handling: deprecated module removal

Speakers
avatar for Chunfu Wen

Chunfu Wen

principal software quality engineer, Red Hat
I am an open source contributor and promoter.I work at Red Hat, and have 17+ years working experiences in various companies such as:Oracle, Motorola, Siemens.



Saturday August 18, 2018 12:00pm - 12:35pm EDT
East Balcony Boston University, George Sherman Union Building