summaryrefslogtreecommitdiff
path: root/numpy/polynomial/polyutils.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2019-06-28 19:02:36 -0700
committerSebastian Berg <sebastian@sipsolutions.net>2019-06-29 19:16:14 -0700
commit45ca9d9fc7ab57b2757a37b20fdce687074f0c53 (patch)
treec7525aba7a59d44c113e9ac2696baf5c9fe6e7b2 /numpy/polynomial/polyutils.py
parentf0e64a12ee41ca9456ce7032d7ecdfe6f1be5ec1 (diff)
downloadnumpy-45ca9d9fc7ab57b2757a37b20fdce687074f0c53.tar.gz
MAINT,BUG: Use nbytes to also catch empty descr during allocation
We do not want to allocate 0 bytes (since it is not well defined), normally nbytes is 0 if the array is empty. But in case also the descriptor element size is empty, use 1 byte.
Diffstat (limited to 'numpy/polynomial/polyutils.py')
0 files changed, 0 insertions, 0 deletions