On Mon, 28 Oct 2013 09:50:19 +0000, Wolfgang Maier wrote:

> So my question is: is there an agreed-upon generally best way of dealing
> with this?

Yes. Just leave the test inside the loop.

If you're sufficiently concerned about performance that you're willing to
trade clarity for it, you shouldn't be using Python in the first place.

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to