defining the behavior of zip(it, it) (WAS: Converting a flat list...)

Fredrik Lundh fredrik at pythonware.com
Wed Nov 23 03:39:51 EST 2005


rurpy at yahoo.com wrote:

> led to more serious flaws like the missing if-then-else expression,
> something I use in virtually every piece of code I write, and which
> increases readability.

you obviously need to learn more Python idioms.   Python works better
if you use it to write Python code; not when you mechanically translate
stuff written in other languages to Python.

> (Well, ok that is not the end of the world either but it's lack is irritating
> as hell, and yes, I know that it is now back in favor.)

the thing that's in favour is "then-if-else", not "if-then-else".

</F>






More information about the Python-list mailing list