On Jun 14, 2013, at 10:24 PM, Andreas Röhler wrote:

>Is this a bug?
>
>http://stackoverflow.com/questions/17114573/python-mode-el-not-allowing-indentation-after-if-statement/17116654#17116654

It's bad form to use parentheses in this situation, but it *is* legal.  It
doesn't bother me if python-mode passive/aggressively discourage such bad
form, but others might disagree.  OTOH, this, which is perfectly fine form,
seems to work well:

def foo():
    if (foo &&
        baz):
        bar()

(i.e. parens used to span multiple lines.)

-Barry
_______________________________________________
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode

Reply via email to