John Hunter jdhunter at
Tue Aug 6 20:22:32 CEST 2002

>>>>> "Gillou" == Gillou  <nospam at> 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

More information about the Python-list mailing list