|
|
|
|
|
by kstrauser
804 days ago
|
|
A few years ago, I got tired of my company talking about plans to upgrade our main app from Python 2 to Python 3, until one weekend I just did it. The tests caught a million little changes that I worked through until everything passed. Come Monday, we were on Python 3 and I took a couple workdays off to play video games. I wouldn’t have dared even start if I didn’t have confidence in our test suite. |
|
Plus, I had C extensions, which had to be updated to handle changes in the Python/C API, including places where Python 2.7 could handle both Unicode and bytes in the ASCII subset:
but under Python 3 required more work: AND, I needed to support both Python 2.7 and Python 3.5+ on the same code base.AND, I needed to support various third-party tools that had their own different migration paths for how to handle the transition.