3 ms·
I inherited a ton of python 2 code. Am I screwed?
by tootie 6y ago
I inherited a ton of python 2 code. Am I screwed?
- awakeasleep 6y agoImagine if your car broke down monthly, and you could afford to fix it, but buying a new one would put you into an uncomfortable amount of debt. Screwed? No. Terribly inconvenienced, yes. This is assuming you have enough other stuff to do that you cant afford the “debt” of migrating the python2
- tcbasche 6y agoHaving worked with a huge Python 2 codebase recently, it's fine[1] but just becomes painful regarding dependencies. It just means you'll never have the latest versions of things. My advice would be to gradually port what you can using six (https://pypi.org/project/six/ https://pypi.org/project/six/) [1] Fine in the sense that, the code will still work