On Fri, May 24, 2013 at 1:09 PM, Christoph Gohlke <cgoh...@uci.edu> wrote:
<snip>


> This patch works for me:
>
> diff --git a/numpy/random/mtrand/mtrand.pyx
> b/numpy/random/mtrand/mtrand.pyx
> index b0de560..233ff52 100644
> --- a/numpy/random/mtrand/mtrand.pyx
> +++ b/numpy/random/mtrand/mtrand.pyx
> @@ -4156,7 +4156,7 @@ cdef class RandomState:
>           if mean.shape[0] != cov.shape[0]:
>                  raise ValueError("mean and cov must have same length")
>           # Compute shape of output
> -        if isinstance(shape, int):
> +        if isinstance(shape, (int, long, np.integer)):
>               shape = [shape]
>           final_shape = list(shape[:])
>           final_shape.append(mean.shape[0])
>
>
Looks right. Can you make a PR for this, maybe with a test that might
otherwise fail for some architectures?

Chuck
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to