Allow multiline conditions and the like

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Mon Nov 1 08:16:34 CET 2010

In message <874oc1ldo6.fsf at>, Ben Finney wrote:

> Yingjie Lan <lanyjie at> writes:
>> Allow the conditions in the if-, elif-, while-, for-, and with-clauses
>> to span multiple lines without using a backlalsh at the end of a line,
> You can already do this with any expression: use parentheses.

It’s easy enough to do things like this:

    if (
            OtherVertex != ThatVertex
            OtherVertex != ThisLine[-2]
            OtherVertex != ThisVertex
    ) :
    #end if

More information about the Python-list mailing list