Thursday, September 27, 2007

Python: Myths about Indentation

This is the place where to point your friends when they gripe about Python's "significant whitespace". There are even details on how it is parsed, for those who are interested.

http://www.secnetix.de/~olli/Python/block_indentation.hawk

The following is covered:
Whitespace is significant in Python source code.
Python forces me to use a certain indentation style.
You cannot safely mix tabs and spaces in Python.
I just don't like it.
How does the compiler parse the indentation?

No comments: