diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2019-06-28 19:02:36 -0700 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2019-06-29 19:16:14 -0700 |
commit | 45ca9d9fc7ab57b2757a37b20fdce687074f0c53 (patch) | |
tree | c7525aba7a59d44c113e9ac2696baf5c9fe6e7b2 /numpy/polynomial/polyutils.py | |
parent | f0e64a12ee41ca9456ce7032d7ecdfe6f1be5ec1 (diff) | |
download | numpy-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