3 ms·
Not so helpful in a strict language (since you want y to be evaluated only when x is None)
by dilap 16y ago
Not so helpful in a strict language (since you want y to be evaluated only when x is None)
- eru 16y agoYes, that's true. You would need to wrap it in a lambda, but then that's looks horrible and you might as well use an if.