Another salvo in the indentation war? I hope not.

Peter Schneider-Kamp petersc at stud.ntnu.no
Mon May 29 16:39:19 EDT 2000


Lee Joramo wrote:
> 
> The point pertinent to our discussion, is that when you export scripts from
> Frontier you may do so either as white space formatted or in a format
> similar to C using curly braces and semi-colon's. This C style formatting
> ensures that code is not broken due to the vagaries of various transmission
> methods. Naturally, when you import C style text back into Frontier, it
> converts back into white space formatted. Frontier users would never write
> code directly in this C style format.
> 
> While this approach works very well, it would be hard to implement in
> Python for several reasons.

Okay, all reasons granted. But if you use pindent for sources you're
posting
somewhere you can have the same effect (albeit with some extra work).

If you don't like these "# end"-tags (I find it quite annyoing to
read - once you've gotten used to indentation you never wanna go back),
just eliminate them after receiving.

having-just-send-in-a-patch-to-eliminate-end-tags-with-pindent-ly y'r
Peter
--
Peter Schneider-Kamp          ++47-7388-7331
Herman Krags veg 51-11        mailto:peter at schneider-kamp.de
N-7050 Trondheim              http://schneider-kamp.de




More information about the Python-list mailing list