News for hackers. Stuff that matters.
Re:Python 3000 is ready by jmtulloss on Wednesday December 03, 2008 @10:09PM (#385243)
Is print("Hello World") really any different than print "Hello World"? The first seems more clear.
Re:Python 3000 is ready by riobard on Wednesday December 03, 2008 @11:02PM (#385282)
I think print("hello world") is better because it is more consistent (mentally)
Re:Python 3000 is ready by jamesbritt on Wednesday December 03, 2008 @11:23PM (#385297)
Doesn't Python make a distinction between some_method and some_method(), where the first is a direct reference to a Method object (more or less) and the second actually invokes that method?
Re:Python 3000 is ready by jmtulloss on Thursday December 04, 2008 @01:38AM (#385396)
Yes, all functions are objects. The thing is, "print" used to be a part of the language, not a function, so you couldn't treat it like a function.
Re:Python 3000 is ready by jodrellblank on Thursday December 04, 2008 @07:59AM (#385613)
Previously: 5 keypresses, Now: 9 keypresses

Previously: 2 characters that aren't directly relevant to what you want to do (print text, the quotes), Now: 4 (quotes and parens).

Previously: No shifted characters, Now: 2 shifted characters

Previously: Inconsistent behaviour, right in the core of the language where you are most likely to benefit from minor savings and least likely to forget about it. Now: Consistent behaviour at the expense of extra typing, visual clutter and, for experienced users, the hassle of changing.

Previously: Python loved for its interactive interpreter, only really possible because Python is concise enough to use in a throw-away fashion.

Yes it's different, the question is, is it an improvement, and is it significant enough to be worth it?

The question is, given all the changes to unicode and classes and iterators and final removing of the int/long split which are all going to play out over big programs and many days/months, why not pick on the color of the bike shed 'issue', extrapolate it over the whole of Py3k and make out of proportion complaints?

Er, wait...