News for hackers. Stuff that matters.
Re:Python indentation: very nice explanation for the curious... by nostrademons on Friday September 21, 2007 @11:47AM (#57968)
And before Python 2.5, people usually used this idiom:

    x = a and f(x) or g(y)
If you know the idiom, I think this is more readable (conditional is on the left), though it has the drawback of using completely nonsensical keywords.
Re:Python indentation: very nice explanation for the curious... by brlewis on Friday September 21, 2007 @01:32PM (#58005)
I don't think the keywords are nonsensical.

   (or (and a (f x))
       (g y))

Re:Python indentation: very nice explanation for the curious... by brlewis on Monday September 24, 2007 @04:06PM (#59044)
Another drawback I just noticed is that if f(x) returns false, you'll get g(y) even if a is true.