Oops, after tweaking the timing a bit, they seem to take the same amount of time: # using globals $ gen.py 1000 8.163294467 0.010000 seconds. # using generators $ gen2.py 1000 8.163294467 0.010000 seconds. // mark