~/talk

Writing Python 2/3 compatible code

Talkat PyCon Australia 2014 · 2014-08-01..08-05· [python]
slides:none on file

Describes concrete migration work: a python-future library (≈37k LOC, 850 tests, ~1,150 commits) plus futurize/past scripts built on lib2to3 that successfully backport Python 3 behaviors into 2.6/2.7; recommends targeting Python 3.3+ and dropping <2.6 support, shows specific idioms (from future.builtins, future.moves, Six) that make print, bytes/str, division, iterators and stdlib imports behave the same, and reports the tools actually work on large codebases.

AI-written summary · about

  1. 0:00Introduction to Python 2 vs 3
  2. 1:09State of Python 3 migration
  3. 3:51Benefits and pitfalls
  4. 7:29Resources for migration
  5. 10:18Single source compatibility
  6. 13:32Philosophy and design
  7. 17:29Built-ins and past package
  8. 20:32Practical coding idioms
  9. 25:32Handling bytes and strings
  10. 31:19Type checking and iterators
  11. 34:46Library and syntax management
  12. 38:55Conclusion and future steps
~/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.