Allow multiline conditions and the like
Lawrence D'Oliveiro
ldo at geek-central.gen.new_zealand
Mon Nov 1 03:16:34 EDT 2010
In message <874oc1ldo6.fsf at benfinney.id.au>, Ben Finney wrote:
> Yingjie Lan <lanyjie at yahoo.com> 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 (
TheMesh.vertices[OtherVertex].select
and
OtherVertex != ThatVertex
and
OtherVertex != ThisLine[-2]
and
OtherVertex != ThisVertex
) :
...
#end if
More information about the Python-list
mailing list