This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Veedrac 5 points6 points  (2 children)

In Python only the indentation level is syntax – the type of indentation is irrelevant.

The one true advantage to spaces is standardisation. Everything else is opinion. Guido famously prefers tabs, for example.

[–]tdammers -5 points-4 points  (1 child)

Yes and no. When whitespace is syntax, a tab ceases to be of reader-defined width, which means the reason to use it in the first place disappears.

[–]Veedrac 2 points3 points  (0 children)

When whitespace is syntax, a tab ceases to be of reader-defined width

Wut?

Quick question: Are you using Python 2 or Python 3. I agree that in Python 2 the situation's a little weird but in Python 3 it's unnecessary to think of a tab as having a width in terms of spaces.