In message <h0f%l.20231$y61.5...@news-server.bigpond.net.au>, Lie Ryan 
wrote:

> The preferred style is to put the binary operators before the line-break
> ...

Not by me. I prefer using a two-dimensional layout to make the expression 
structure more obvious:

    value = \
        (
          foo.bar()['first'][0] * baz.quux(1, 2)[5:9]
        +
          calculate_number(10, 20) * forbulate(500, 360)
        )

In this case it's not necessary, but if the factors were really long, this 
could become

    value = \
        (
                foo.bar()['first'][0]
            *
                baz.quux(1, 2)[5:9]
        +
                calculate_number(10, 20)
            *
                forbulate(500, 360)
        )


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to