language-x-isms

Fredrik Lundh fredrik at pythonware.com
Thu Jun 8 07:51:31 EDT 2006


Alan Kennedy wrote:

> We still don't get anything that sheds light on how the code I posted
> is deficient.

who said that?

> Why can't you just say "I made a mistake, I thought your code replaced
> the builtin enumerate, but it doesnt"?

I can read python code quite well, thank you.

the point here (which was made in the context of this thread) is that 
the "unpythonic" solution isn't all that bad, especially if you prefer 
writing code that runs well on more than just the latest platforms. 
your fallback solution doesn't do that; it punishes old platforms, and 
doesn't even perform as well as an "unpythonic" solution on recent ones.

that's not much of a problem for use cases where performance isn't all 
that important, but it's something that should be kept in mind.

</F>




More information about the Python-list mailing list