>>>>> "Gillou" == Gillou <nospam at bigfoot.com> writes: Gillou> Sometimes we talk about "python extensions" in this group. Gillou> Perhaps this raised some confusion in your mind. I tend to use: optimal = ?? while 1: if size<optimal: size += 1 else: break But should I be using a generator instead? John Hunter