[Python-Dev] Python3: speed efficiency vs user friendliness (my first experience)

Steven D'Aprano steve at pearwood.info
Wed Mar 23 12:43:51 CET 2011


Greg Ewing wrote:
> Steven D'Aprano wrote:
> 
>> The main one that comes to my mind is that other than looping, any 
>> time I want to process dict.items() etc I often need to call list() 
>> first.
> 
> I don't think that's such a bad thing. It makes it clear that
> you're performing a more expensive operation than just looking
> at the keys.

Oh, I didn't mean to imply that it was a bad thing. But it certainly is 
less convenient.


-- 
Steven


More information about the Python-Dev mailing list