Tabs versus Spaces in Source Code
duncan.booth at invalid.invalid
Tue May 16 21:35:08 CEST 2006
> You haven't explained why you think there's a problem with having a
> character which, in an unambiguous and non-implementation-specific way,
> means 'one level of indentation'. In Python, of all languages, it makes
> sense to have such a character because 'one level of indentation' is a
> syntactical token processed by the interpreter.
Because it doesn't mean 'one level of indentation', it means 'move to next
tabstop' and a tabstop isn't necessarily the same as a level of
indentation. In particular a common convention is to have indentations at 4
spaces and tabs expanding to 8 spaces.
More information about the Python-list