Tabs and spaces (style)

Steve Holden sholden at holdenweb.com
Tue May 1 12:05:28 EDT 2001


"Cantanker" <az at cantanker.net.nospam> wrote in message
news:Y4AH6.28530$ff.208353 at news-server.bigpond.net.au...
> What is the consensus about mixing tabs and spaces in a Python script?
>
> Don't people find it plain annoying to come across a bunch of scripts
> where the author has obviously used a tabsize of 8 characters, and
> alternated expanded tabs (4-spaces) and real tab characters (not wanting
> to name names here *cough*Mailman*cough*). It makes for a real PITA when
> you set your editor to display tab characters with a width of 2, or 4
> spaces, and the code doesn't line up properly.
>
> It imposes one author's choice of tabsize onto everyone else.
>
> Thoughts?
>
Sam Rushing's redent.py fixes this up nicely.

    http://www.nightmare.com/software.html

regards
 Steve





More information about the Python-list mailing list