On 3/20/2015 16:01, Ed Leafe wrote:
On Mar 19, 2015, at 8:59 AM, wernerfb <[email protected]> wrote:
correct mixed indent
As a general style convention, Dabo always uses 2 levels of indentation on
continued lines. Visual indentation is, IMHO, ugly and un-Pythonic. E.g.:
some_object.method_with_a_very_long_name(foo,
bar)
some_object.short_name(foo,
bar)
In both of the above, the lines with 'bar' are semantically identical, but
indented very differently. This is contrary to the spirit of Python, where
indentation conveys semantic meaning. I strongly prefer the convention of
indenting 2 levels for continued lines, as in:
some_object.method_with_a_very_long_name(foo,
bar)
some_object.short_name(foo,
bar)
-- Ed Leafe
Hhm, I fell into that trap again(:, I use WingIDE, it complaint that the
files had mixed indent style, so I just told it to correct to tab only.
It seems to use the 1st indentation recommendation from PEP8.
Anyhow I'll see if I can configure it somehow, otherwise I guess I will
have to do it manually at some point.
Werner
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]