News for hackers. Stuff that matters.
Re:Go Bloviations by slurgfest on Tuesday September 25, 2012 @09:40AM (#4570247)
For information of readers, Python does have a ternary operator. I don't know or care whether it is considered Pythonic, since it is basic Python syntax and seems quite readable to me, e.g.

x = (2 if y > 3 else 4)

There are no comments on this comment yet.