On 2007-08-27, Neil Cerutti <[EMAIL PROTECTED]> wrote: > This sort of suggests a direct solution: > > for i in xrange(self.parent.GetPageCount()): > if i >= self.parent.GetPageCount(): > break > # do stuff > > At least that way you're spared the manual manipulation of i.
On second thought, that last suggestion is flawed, as a growing page count would be ignored. Please ignore. -- Neil Cerutti Whenever I see a homeless guy, I always run back and give him money, because I think: Oh my God, what if that was Jesus? --Pamela Anderson -- http://mail.python.org/mailman/listinfo/python-list