DOS, UNIX and tabs
Felix Benner
felix.benner at imail.de
Thu Dec 28 06:51:25 EST 2006
Sebastian 'lunar' Wiesner schrieb:
> Ben <Benjamin.Barker at gmail.com> typed
>
>> I have a python script on a windows system that runs fine. Both use
>> tabs to indent sections of the code.
>
> Just a tip for you: In python you never use tabs for indentation. The
> python style guide [1] recommends four spaces per indentation level.
>
> [1] http://www.python.org/dev/peps/pep-0008/
>
I like using tabs. And the style guide doesn't give a reason why one
shouldn't and neither does the thread
http://www.python.org/search/hypermail/python-1994q2/0198.html in the
archive.
So what's the point in typing four spaces for indentation instead of one
tab?
More information about the Python-list
mailing list