I don't know why this was ever defined when python has a ternary operator which doesn't require its arguments to be evaluated if the condition evaluates to false, whereas this helper method does.
1.9 KiB
1.9 KiB