4 ms·
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
by nostrademons 19y ago
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.