3 ms·
"from python2 import {__some_old_feature__}" could go a long way toward easing the transition. Disclaimer: I spent a lot of time converting things from python2
by musicale 7y ago
"from python2 import {__some_old_feature__}" could go a long way toward easing the transition.
Disclaimer: I spent a lot of time converting things from python2 to python3. It's a big pain.
Pet peeve: don't break compatibility for ideological reasons. For example, the print statement didn't need to die: it could have lived on as needed side-by-side with the print() function.
- chc 7y agoI don't get that pet peeve. There are aspects of converting Python 2 to Python 3 that can be hard, but print statements are really not one of them as far as I've seen. Converting print statements to print function calls can be done mechanically. I guess it's fair to say the print statement didn't need to die, but it really didn't need to live either.