Lawrence Oluyede: Producer/Consumer with multitask library

May 29th, 2007 § 0 comments

Lawrence Oluyede beat me to it! As part of my “cheese shop­ping” I had the new mul­ti­task library as one of the ones to talk about. Lawrence beat me to it by actu­ally imple­ment­ing Producer/Consumer with it!

I’ve only solved that prob­lem using Queue and Thread. I feel so behind the times.

As Lawrence points out — Gen­er­a­tors (and the improve­ments to them in 2.5) are really pow­er­ful — and I think we’re going to see a lot more atten­tion paid to them as peo­ple start switch­ing off of python2.3/2.4 and head­ing into 2.5.

See more on Python Gen­er­a­tors in pep 342.

(Via unof­fi­cial planet python.)

What's this?

You are currently reading Lawrence Oluyede: Producer/Consumer with multitask library at jessenoller.com.

meta