On 03/20/2015 08:01 AM, 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

+1
That said, I try to avoid both methods and just have very long code lines - I don't respect the 79 char limit.
Johnf

_______________________________________________
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]

Reply via email to