News for hackers. Stuff that matters.
Re:First Impressions of Python from a Java Developer by koenigdavidmj on Monday November 08, 2010 @02:00PM (#1883509)
The colon is there to make it easier on editors that want to do auto-indentation. Their logic can simply be that if the previous line ends with a colon, then add a new indentation level.
Re:First Impressions of Python from a Java Developer by nivertech on Monday November 08, 2010 @02:11PM (#1883549)
Now we supposed to help editors? ;) I thought it should be otherwise... editors supposed to be helping programmers.

Programmers can learn syntax. Regular humans can't. Both Python and Ruby failed to provide a simple way of building internal DSLs. In Python humans need to be specific about indentation and ":" and in Ruby they need to remember all these stupid sigils.