DOS, UNIX and tabs

Ben Finney bignose+hates-spam at benfinney.id.au
Wed Dec 27 18:09:56 EST 2006


"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.

-- 
 \       "I filled my humidifier with wax. Now my room is all shiny."  |
  `\                                                  -- Steven Wright |
_o__)                                                                  |
Ben Finney




More information about the Python-list mailing list