I'm sure it's been asked and it's going to get a "just use a generator comprehension!" response, but just in case it's in the standard library somewhere and I just can't find it in itertools...
In Python 3.x, is there a functional alternative to:
(x if c else y for c, x, y in zip(cs, xs, ys))
For example, numpy.where(cs, xs, ys)
does exactly this.