DOS, UNIX and tabs

Sebastian 'lunar' Wiesner basti.wiesner at gmx.net
Thu Dec 28 03:26:28 EST 2006


"Erik Johnson" <ej at somewhere.com> <> typed

> 
> "Ben Finney" <bignose+hates-spam at benfinney.id.au> wrote in message
> news:mailman.2061.1167261027.32031.python-list at python.org...
>> "Sebastian 'lunar' Wiesner" <basti.wiesner at gmx.net> writes:
>>
>> > Just a tip for you: In python you never use tabs for indentation.
>>
>> For some value of "you".
>>
>> > The python style guide [1] recommends four spaces per indentation
>> > level.
>> >
>> > [1] http://www.python.org/dev/peps/pep-0008/
>>
>> It's not quite absolute on the topic:
>>
>>     For new projects, spaces-only are strongly recommended over tabs.
> 
>     Even if were, read the Introduction. This is a coding standard
>     intended
> to apply to code which is going to checked in as part of the core
> python
> build, not all Python!  It's probably a pretty good standard to be
> following in general, but come on...

It is, and especially the problems with tabs shows you, why it is good
practice to follow the standard in your own code, too...


-- 
Freedom is always the freedom of dissenters.
                                      (Rosa Luxemburg)



More information about the Python-list mailing list