[Python-ideas] Pipe indentation
Chris Angelico
rosuav at gmail.com
Mon Dec 9 11:11:09 CET 2013
On Mon, Dec 9, 2013 at 9:07 PM, <musicdenotation at gmail.com> wrote:
> if condition:
> | do_this
> | if cond2:
> | |do_that
> else:
> | do_this_instead
>
> This has the advantage of you always knowing which nesting level you are.
Alternative suggestion: Tab indentation. Do exactly the same thing,
but replace every pipe with a tab. Then you can set your editor to
show indentation visibly (SciTE does this already).
ChrisA
More information about the Python-ideas
mailing list