~/talk

How to Build a Plan to Migrate to Python 3

Talkat PyOhio 2018 · 2018-07-28..07-29· [python, legacy-modernisation]
links:none on file
slides:none on file

Python 2 reaches end of life on Jan 1, 2020, so plan a targeted migration: pick a concrete Python 3 target (3.7 if possible), run coverage to find gaps with emphasis on text handling (file I/O, web, logs) and division edge cases, audit dependencies with caniusepython3 but manually verify metadata, apply 2to3 fixers in three categories (safe now, review, and later breaking ones) and handle the Unicode fixer with python_2_unicode_compatible before switching.

AI-written summary · about

  1. 0:00How to Build a Plan to Migrate to Python
  2. 3:57Why Python 3, Why Now?
  3. 6:02A Plan for Your Plan
  4. 7:41Decide which Python 3 to Target
  5. 8:35Reasons for Targeting the Latest
  6. 9:16Identify Test Gaps
  7. 12:58Review Dependencies
  8. 15:39for New Code
  9. 17:17for Existing Code
  10. 18:45Three 2to3 Fixer Categories
  11. 21:09Now Fixer Example - ne
  12. 24:26Example - The dict Fixer Part 2
  13. 24:582to3 - Later Fixers
  14. 25:332to3 - The Unicode Fixer
  15. 28:08Ready, Set, Migrate!
  16. 29:51Other Perspectives
  17. 33:05Other Helpers
  18. 34:38Wrap Up
~/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.