News for hackers. Stuff that matters.
Re:Berkeley AI Materials by daveguy on Tuesday January 19, 2016 @11:22AM (#10931696)
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.

Re:Berkeley AI Materials by JoshTriplett on Tuesday January 19, 2016 @11:48AM (#10931899)
> 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.

Re:Berkeley AI Materials by natch on Tuesday January 19, 2016 @07:43PM (#10935256)
From the Python Wiki at 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.