diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2017-11-15 13:53:57 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2017-11-15 14:03:37 -0700 |
commit | 0a1069ae98f49ba7fa87a37fc62f0db904265c2c (patch) | |
tree | e3b03fb8184cbd95dc8cba5bb808ce932215b945 /numpy/lib/arraysetops.py | |
parent | abbf4155a0b068520138245b67c34a034a52c42a (diff) | |
download | numpy-0a1069ae98f49ba7fa87a37fc62f0db904265c2c.tar.gz |
BUG: Fix f2py string variables in callbacks.
When NPY_CHAR was deprecated and replaced by NPY_STRING in f2py, calls
to PyArray_New that previously relied on the type to get the itemsize
needed the size explicitly specified, but that modification was missed
in some of the code. Because the strings that replacee the 'c' type are
always 'S1', we use an itemsize of 1 for the string types and pass it
explicitly.
Closes #10027.
Diffstat (limited to 'numpy/lib/arraysetops.py')
0 files changed, 0 insertions, 0 deletions