Function/method returning list of chars in string?

Terry Reedy tjreedy at udel.edu
Tue Jun 9 22:46:35 CEST 2009


Miles Kaufmann wrote:
> On Jun 9, 2009, at 6:05 AM, Diez B. Roggisch wrote:
> 
>> Also as list-comps are going away and are replaced by
>>
>> list(<generator-expression>)
> 
> Where did you hear that?

Perhaps in the discussion of possible changes for 3.0 about 18 months 
ago.  The idea was rejected because set/list/dict(genexp) is too much 
slower (say 2x) than the direct implementation of set/list/dict 
comprehensions.

tjr




More information about the Python-list mailing list