Re: Weird generator id() behaviour (was Re: Python code written in1998, how to improve/change it?)

2006-01-24 Thread Carl Cerecke
Carl Cerecke wrote: > Fredrik Lundh wrote: > >> Carl Cerecke wrote: >> >> >>> It turns out that generators are more efficient than the eval function >>> excuting bits of compiled code. About 20-25% faster. >> >> >> >> why are you using generators to return things from a function, when >> you can j

Re: Weird generator id() behaviour (was Re: Python code written in1998, how to improve/change it?)

2006-01-24 Thread Carl Cerecke
Fredrik Lundh wrote: > Carl Cerecke wrote: > > >>It turns out that generators are more efficient than the eval function >>excuting bits of compiled code. About 20-25% faster. > > > why are you using generators to return things from a function, when > you can just return the things ? Trying to