Non-Indented python

Magnus Lie Hetland mlh at
Mon Nov 12 20:39:41 CET 2001

"Skip Montanaro" <montanaro at> wrote in message
news:mailman.1005148279.5189.python-list at
>     Samuel> I figure it should be quite simple to implement a program
>     Samuel> that translates scripts where blocks are expressed by
>     Samuel> traditionnal block markers like '{' and '}' (or whatever
>     Samuel> else..) into a well indented python script.
>     Samuel> Is there such a program ??
> Yes, there is, and it's delivered with Python!  It's Tools/scripts/
> in the standard distribution.  It only needs a block end
> delimiter (# end).  You already have ":" as the opener...

It messes up multiline strings, though. (or, rather -- it messes up the
indentation in multiline strings.)

> guido's-time-machine-strikes-again-ly, y'rs,

Magnus Lie Hetland                           The Anygui Project                 

More information about the Python-list mailing list