Hi, I think I recall seeing this here, but I wanted to make sure I'm correct. <div><br></div><div>Is the best way to test for an empty list just test for the truth value? I.e.</div><div><br></div><div>mylist = [1,2,3]</div>
<div><br></div><div>while mylist:</div><div> print mylist.pop()</div><div><br></div><div>Thanks,</div><div>Wayne<br clear="all"><br>-- <br>To be considered stupid and to be told so is more painful than being called gluttonous, mendacious, violent, lascivious, lazy, cowardly: every weakness, every vice, has found its defenders, its rhetoric, its ennoblement and exaltation, but stupidity hasn’t. - Primo Levi<br>
</div>