Lawrence Oluyede: Producer/Consumer with multitask library

by jesse in ,

Lawrence Oluyede beat me to it! As part of my "cheese shopping" I had the new multitask library as one of the ones to talk about. Lawrence beat me to it by actually implementing Producer/Consumer with it! I've only solved that problem using Queue and Thread. I feel so behind the times.

As Lawrence points out - Generators (and the improvements to them in 2.5) are really powerful - and I think we're going to see a lot more attention paid to them as people start switching off of python2.3/2.4 and heading into 2.5.

See more on Python Generators in pep 342.

(Via unofficial planet python.)