if, continuation and indentation

Xavier Ho contact at xavierho.com
Thu May 27 09:14:49 EDT 2010


On 27 May 2010 22:57, Jean-Michel Pichavant <jeanmichel at sequans.com> wrote:

> One possible solution
>
>   if (
>           width == 0 and
>           height == 0 and
>           color == 'red' and
>           emphasis == 'strong' or
>           highlight > 100
>      ):
>       raise ValueError("sorry, you lose")
>
> But... but you have a sad face in one line! :(

Good trick.

-Xav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100527/3f577e13/attachment-0001.html>


More information about the Python-list mailing list