if, continuation and indentation
Pete Forman
petef4+usenet at gmail.com
Wed Jun 9 12:27:31 EDT 2010
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.
--
Pete Forman -./\.-
West Sussex, UK -./\.-
http://petef.22web.net -./\.-
petef4+usenet at gmail.com -./\.-
More information about the Python-list
mailing list