Another salvo in the indentation war? I hope not.

Ben Wolfson rumjuggler at cryptarchy.org
Sat May 27 08:38:48 CEST 2000


On Sat, 27 May 2000 05:53:57 GMT, nospam.newton at gmx.li (Philip 'Yes,
that's my address' Newton) wrote:

>On Fri, 26 May 2000 06:26:23 -0700 (PDT), Darrell Gallion
><dgallion1 at yahoo.com> wrote:
>
>> rzantow at my-deja.com wrote:
>> : When a newsreader, browser, or mail program trashes
>> : the indentation from examples of Python source, it is a
>> : real pain in the hindlimbs to recover the original
>> : program logic.
>>  
>> Don't use tabs in the source, then all is well.
>
>Try feeding this to python, then:
>
>if 1 == 1:
>print "This won't work"
>
>You'll get a SyntaxError if somebody removes all leading indentation.

You could filter your scripts and replace all tabs with \t.
Leading \ts would then be converted to tabs on the receiving end.

-- 
Barnabas T. Rumjuggler

In the morning I came awake as I always do, like a man trapped in a
car going over a cliff.
 -- Russell Hoban, _The Medusa Frequency_



More information about the Python-list mailing list