Hi All,

On Fri, Jun 14, 2013 at 04:30:16PM -0400, Barry Warsaw wrote:
> 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.)

This example raises a pep8 warning[0], I've been dealing with it and manually
adding another indentation level to not leave 'baz' aligned with 'baz()'

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

Can this be considered a bug?

Best Regards,

[0] E125 continuation line does not distinguish itself from next logical line
-- 
Felipe Reyes
Software Engineer
http://tty.cl

Attachment: signature.asc
Description: Digital signature

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

Reply via email to