[Python-ideas] Pipe indentation
Christopher Welborn
cjwelborn at live.com
Tue Dec 10 04:13:20 CET 2013
On 12/09/2013 04:07 AM,
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.
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
Here's a link to a screen shot that shows Sublime Text's nesting level
lines:
http://imgur.com/yRGNCKu
...a lot of editors do this, tab or space.
p.s. - it's not my code in the screen shot, its from the powerline
module for vim (just grabbed the closest thing with nesting).
--
- Christopher Welborn <cjwelborn at live.com>
http://welbornprod.com
More information about the Python-ideas
mailing list