Python is readable

Duncan Booth duncan.booth at invalid.invalid
Thu Mar 15 15:23:38 CET 2012

Kiuhnm <> wrote:

> BTW, aren't those ':' redundant?

They are required by the grammar, but in a sense you are correct. You could 
modify Python's grammar to make the colons optional and still keep it 
unambiguous but that would make it harder for other tools (such as text 
editors or indeed humans) to understand.

A little bit of redundancy in the grammar is seen as a good way to minimise 

Duncan Booth

More information about the Python-list mailing list