July 03, 2003
No Ternary Operator
Its official, there will be no ternary operator in Python.
Feel free to take the streets to celebrate, or whatever activity you feel is appropriate.
Posted by Andy Todd at July 03, 2003 10:18 AM
Hmmm. Good, I think.
I mean really, people ... is it that hard to write if/else ?
It is in a lambda, yes. But then I avoid those too...
And in list comprehensions too, I suppose, if someone adamantly refuses to create a method containing that if/else and two return values.