Indentation voodoo in Python

February 25, 2008 • 30 sec read


This post is over ten years old. Chances are, I've learned enough to have advanced my thinking about some of this stuff.

Python is my favourite language this month ((Last month’s was Javascript. Take that performance-lovers!)). The fact it requires indentation helps newbie programmers, but offends many experienced programmers’ sensibilities. Today I found a good article on some indentation myths, including tabs-vs-spaces, compiler-side details, and when whitespace doesn’t matter.


Liked this? Follow along to see what's next.

© Allen Pike. 👋🏼 You can contact me, or check out Steamclock.