Indentations and future evolution of languages

skip at pobox.com skip at pobox.com
Tue Mar 10 13:39:47 EDT 2009



    John> The only complaint I have there is that mixing tabs and spaces for
    John> indentation should be detected and treated as a syntax error.

Guido's time machine strikes again (fixed in Python 3.x):

    % python3.0 ~/tmp/mixed.py
      File "/home/titan/skipm/tmp/mixed.py", line 3
        print(a)
               ^
    TabError: inconsistent use of tabs and spaces in indentation

Skip



More information about the Python-list mailing list