numpy/numpy — pull request #4587 by ddasilva (2014-04-05 02:03:03+00:00)
Title: BUG: Explicitly reject nan values for p in binomial(n, p).

Fixes #4571. Adds check with np.isnan(p) and raises ValueError if check is positive. Also adds regression test.