4 ms·
I don't understand this sentiment at all. What does Python3 require of you that isn't necessary in Python 2? Print as a function is my only example. Python 3
by cmyr 10y ago
I don't understand this sentiment at all.
What does Python3 require of you that isn't necessary in Python 2? Print as a function is my only example.
Python 3 lets you continue writing the same same simple stuff as ever. It also provides a bunch of other power that you can _choose_ to use.
The OP's example is such a strawman it's hard to take seriously. If you're writing little scripts (or teaching someone some introductory programming) You don't need to use decorators or type annotations or asnyc/await. If you're Dropbox and you've deployed 4 million + lines of Python, then maybe type annotations make sense for you, and there they are.
What is there about 2.7 that you prefer? The thing that most surprised me after finally moving to python 3 full-time a few years back, was that it was so completely painless.
- jsnathan 10y agoThat's true as long as I'm the only person working on the code. What happens when I need to collaborate with others? Am I gonna be the one to say (the equivalent of), you can't submit this perfectly valid and idiomatic C++ code, you've gotta remove all the templates first? Choosing Python 2 when I can is like setting in place a simpler coding standard.