Anton Aylward wrote:
If I recall, python only needs the indenting, it doesn't care what's shown on the screen for you so long as its consistent
And this is where the trouble starts if you use tabs: Consistency. Because as soon as you (or somebody else) use a different editor on a different machine, chances are that tabs get expanded to the wrong number of spaces (4 or 8 or whatever). This makes your Python code look wrong, because many editors (or the authors) will mix tabs and spaces. So there are two rules from PEP 8 [1] that you should _really_ obey: - Never mix tabs and spaces. - For new projects, spaces-only are strongly recommended over tabs. Everything else is just a major PITA! Also, always start python with the "-tt" option, this will raise an error if tabs and spaces are mixed in a way that is ambiguous. Regards nordi [1] http://www.python.org/dev/peps/pep-0008/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org