Re: Generators.

2009-12-08 Thread Jorge Cardona
2009/12/8 Lie Ryan : > First, I apologize for rearranging your message out of order. > > On 12/8/2009 5:29 AM, Jorge Cardona wrote: >>>> >>>> islice execute the function at the generator and drop the elements >>>> that aren't in the slice.

Re: Generators.

2009-12-08 Thread Jorge Cardona
2009/12/7 Taylor : > On Dec 7, 1:29 pm, Jorge Cardona wrote: >> 2009/12/7 Lie Ryan : >> >> >> >> > On 12/7/2009 7:22 AM, Jorge Cardona wrote: >> >> >> Hi, >> >> >> I was trying to create a function that receive a generator an

Re: Generators.

2009-12-07 Thread Jorge Cardona
2009/12/7 Lie Ryan : > On 12/7/2009 7:22 AM, Jorge Cardona wrote: >> >> Hi, >> >> I was trying to create a function that receive a generator and return >> a list but that each elements were computed in a diferent core of my >> machine. I start using islice

Generators.

2009-12-06 Thread Jorge Cardona
Hi, I was trying to create a function that receive a generator and return a list but that each elements were computed in a diferent core of my machine. I start using islice function in order to split the job in a way that if there is "n" cores each "i" core will compute the elements i,i+n,i+2n,...

Re: Bored.

2009-11-30 Thread Jorge Cardona
2009/11/30 Stef Mientki : > Necronymouse wrote: >> >> Hello, I am learning python for about 2 years and I am bored. Not with >> python but I have a little problem, when i want to write something I >> realise that somebody had alredy written it! So i don´t want to make a >> copy of something but i w