Grouping code by indentation - feature or ******?

Kent Johnson kent37 at tds.net
Fri Mar 25 08:51:46 EST 2005


Tim Tyler wrote:
> What do you guys think about Python's grouping of code via indentation?
> 
> Is it good - perhaps because it saves space and eliminates keypresses?
> 
> Or is it bad - perhaps because it makes program flow dependent on 
> invisible, and unpronouncable characters - and results in more
> manual alignment issues by preventing code formatters from managing
> indentation?

http://www.python.org/doc/faq/general.html#why-does-python-use-indentation-for-grouping-of-statements

  >>> from __future__ import braces
   File "<stdin>", line 1
SyntaxError: not a chance

Love it or leave it...

Kent



More information about the Python-list mailing list