~/talk

Python 2 to 3: How to Upgrade and What Features to Start Using

Talkat PyCon 2018 · on Saturday, 2018-05-12· [python]
slides:none on file

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

  1. 0:00Start
  2. 9:26Gradual Migration Strategy
  3. 12:51Compatibility libraries
  4. 21:14The automated conversion tools won't solve all your problems
~/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.