[Tutor] OT: Python 2.5 (Was Re: Length of longest item in a list, using a list comp)

Kent Johnson kent37 at tds.net
Fri Dec 29 14:00:49 CET 2006


wesley chun wrote:
> below is a quick summary of the 2.5 highlights.  of these, i like/use
> the following:
> 1, 2, 4, 5, 6, 7, (8), 9a, 9b. 
> 
> 7) Enhanced Generator Features (PEP 342) -- now you can "talk-back" to
> a generator, meaning you can send data into it as you resume it...
> .next() sends None, .send(obj) sends obj, .throw(exc) throws exception
> exc

Are you using this? I would be interested in finding out how. This seems 
like a feature that allows Python to be used in a new way, but I have 
not yet seen any real applications of it.

Kent



More information about the Tutor mailing list