if, continuation and indentation

Jean-Michel Pichavant jeanmichel at sequans.com
Wed Jun 9 12:53:44 EDT 2010


Pete Forman wrote:
> HH <henrikho at gmail.com> writes:
>
>  > I have a question about best practices when it comes to line
>  > wrapping/ continuation and indentation, specifically in the case of
>  > an if statement.
>
> There are several good suggestions for formatting but no-one has
> mentioned rewriting the code.  Use a boolean variable to hold the
> result of the condition and then the if statement is more readable.
>   
It has been suggested. ;)

JM



More information about the Python-list mailing list