3 ms·
Python 2.7 is the current and future of Python. Google didn't even release their AI framework, tensorflow, in Python 3 initially (late 2015). All relevant fea
by daveguy 11y ago
Python 2.7 is the current and future of Python. Google didn't even release their AI framework, tensorflow, in Python 3 initially (late 2015). All relevant features have been backported and library support is superior. There will be a compatible transition of features in a community+industry supported 2.8. Hopefully the original python crew can swallow their pride long enough to support it.
Python 2.7 is also better for learning with the simple print syntax. Hopefully Guido and Co can figure out a way to support a print statement in their Py3k playground environment.
- JoshTriplett 11y ago> Python 2.7 is also better for learning with the simple print syntax. For the simple case, I don't consider "print(foo)" more complex than "print foo"; if anything, it avoids introducing additional syntax, and instead just provides another built-in function. And in more complex cases, such as printing to a file object, the syntax seems far more straightforward: "print(foo, file=f)" versus "print >>f, foo". Beyond that, the print function can do some things the print statement simply can't, such as print without a trailing space or newline.
- natch 11y agoFrom the Python Wiki at https://wiki.python.org/moin/Python2orPython3 https://wiki.python.org/moin/Python2orPython3 "Python 2.x is legacy, Python 3.x is the present and future of the language" So you have it backwards there, captain. print versus print() is a red herring if there ever was one.