On 27 May 2010 22:22, HH <span dir="ltr"><<a href="mailto:henrikho@gmail.com">henrikho@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

   if (width == 0 and<br>
        height == 0 and<br>
        color == 'red' and<br>
        emphasis == 'strong' or<br>
        highlight > 100):<br>
        raise ValueError("sorry, you lose")<br></blockquote><div><br>I've gotta say - I've bumped into this problem before, and I'm sure many other have - this is a valid question. It just hasn't bothered me enough to ask...<br>

<br>Correct me if I'm wrong, but I think the following is equivalent, and looks better. Although this won't fix all ugly cases in that problem.<br><br><span style="font-family: courier new,monospace;">if (width, height, color, emphasis) == (0, 0, 'red', 'strong') or highlight > 100:</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">    raise ValueError("sorry, you lose")</span> <br><br>Cheers,<br>Xav<br></div></div>