We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fdcf8b commit d76bcd3Copy full SHA for d76bcd3
mkl_random/mklrand.pyx
@@ -5492,7 +5492,7 @@ cdef class RandomState:
5492
5493
if size is None:
5494
shape = []
5495
- elif isinstance(size, (int, long, np.integer)):
+ elif isinstance(size, (int, cython.long, np.integer)):
5496
shape = [size]
5497
else:
5498
shape = size
@@ -5896,7 +5896,7 @@ cdef class RandomState:
5896
[3, 4, 5]])
5897
5898
"""
5899
- if isinstance(x, (int, long, np.integer)):
+ if isinstance(x, (int, cython.long, np.integer)):
5900
arr = np.arange(x)
5901
5902
arr = np.array(x)
0 commit comments