diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2013-02-15 22:11:48 +0100 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2013-03-04 14:12:34 +0100 |
commit | a530098e816e1164efdb356ac2280ba25bfb1c7f (patch) | |
tree | 95ec811ef8a50dd9d91a9567297451e2e4d2aa67 /numpy/polynomial/polyutils.py | |
parent | 4bf5a3feb00fe1d63e7d8fcf852cbf34e22fd60b (diff) | |
download | numpy-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