Keeping library compatible with Python 2.6-3.4 using python-systemd as example

Опубликовано: 29 Сентябрь 2024
на канале: Next Day Video
628
2

Zbigniew Jędrzejewski-Szmek
http://pyvideo.org/video/2279/keeping...
https://pyohio.org/schedule/presentat...
How hard is it to port a library to python 3? How much work is it going forward? Based on two examples (a pure Python, and a C-extension-based library), I want to show how in my experience the work required is modest, without significant impact on old code. At the same time, keeping Python2 compatibility constrains development under Python 3 becau