<div class="gmail_quote">On Tue, Feb 9, 2010 at 9:36 PM, Tim Chase <span dir="ltr"><<a href="mailto:python.list@tim.thechases.com">python.list@tim.thechases.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
removing the "not" from the condition.  I admit I choose one over the other based on some gut-feeling aesthetic that I can't really nail down.  I think one of my major influencing factors revolves around the negative "not" portion having one or two lines and the  positive portion having a large block of code.  </blockquote>
<div><br></div></div>If one block is much shorter, I tend to put the shorter block first.  That way, the "else" and the "if" are almost always on the screen together at the same time.  If they're both long, I factor out one or both of the blocks into functions.<br>
<br>--<br>
Daniel Stutzbach, Ph.D.<br>
President, <a href="http://stutzbachenterprises.com/" target="_blank">Stutzbach Enterprises, LLC</a><br>