~/talk

Journey to migrate python2 projects to 3

Talkat DevConf.CZ 2019 · 2019-01-25..01-27· [python]
speakerdeck:chunfuwen
slides:none on file

Migrating avocado-vt and tp-libvirt updates nearly 650 files changed while keeping production running; work follows a three‑phase coexistence strategy with a branch that validates commits on both Python 2 and 3. Automation uses sixer and 2to3 plus futurize/modernize to apply fixes, CI and virtualenv + CI validate both interpreters, and manual patches handle bytes vs text, integer division, moved/removed stdlib modules, implicit relative imports and deprecated APIs. Continuous small PRs lower risk and rollback is possible.

AI-written summary · about

  1. 0:00Start
  2. 0:54Project Overview
  3. 1:37Motivation
  4. 2:42Migration strategy
  5. 3:25Specific Strategies
  6. 4:27Use Continuous Integration
  7. 8:45Modernize
  8. 9:29Common technique issues
  9. 9:47Essential syntax differences
  10. 12:19Something is gone(2/2)
  11. 20:35Useful Resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.