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

Lennart Regebro regebro at gmail.com
Wed Mar 23 10:16:06 CET 2011


On Tue, Mar 22, 2011 at 22:12, Steven D'Aprano <steve at pearwood.info> 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.

"Process" no. If you want it to be a list, yes. This is because they
now return generators, which is a massive improvement.

> but what I really
> didn't expect is to see that choice is made not in user's favor, but
> in a favor of speed.

I'm not sure what choice you are talking of here... And in this case
Python 2 behaved differently on different platforms and Python 3
doesn't. That seems to be an improvement to me...

//Lennart


More information about the Python-Dev mailing list