summaryrefslogtreecommitdiff
path: root/numpy/polynomial/polyutils.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2013-02-15 22:11:48 +0100
committerSebastian Berg <sebastian@sipsolutions.net>2013-03-04 14:12:34 +0100
commita530098e816e1164efdb356ac2280ba25bfb1c7f (patch)
tree95ec811ef8a50dd9d91a9567297451e2e4d2aa67 /numpy/polynomial/polyutils.py
parent4bf5a3feb00fe1d63e7d8fcf852cbf34e22fd60b (diff)
downloadnumpy-a530098e816e1164efdb356ac2280ba25bfb1c7f.tar.gz
BUG: fix random.choice scalar object result and disallow 0-d arrays
Object arrays failed due to bad check for finding out if the result should be a scalar type and not an array when size=None. Also in this case the creation of the new array was wrong. This should be fixed with this. The second fix is to forbid 0-d arrays. Allowing 0-d arrays does not make much sense. But it is dangerous because for example floats will be interpreted as 1-d arrays, while one may expect that they are interpreted as integers. This also saves the trouble of reliably detecting all integers...
Diffstat (limited to 'numpy/polynomial/polyutils.py')
0 files changed, 0 insertions, 0 deletions