diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2018-10-23 23:58:15 -0700 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2018-10-25 21:22:20 -0700 |
commit | 44810f07ec6a281d96d6a69c105ce6ae59aec718 (patch) | |
tree | 33305eb79c6c12e93dc0c4e66a2b27aa6d1c4637 /numpy/core/setup.py | |
parent | ea3a3d4b9d7330ecae40ebf2c7497e6dd25d07bb (diff) | |
download | numpy-44810f07ec6a281d96d6a69c105ce6ae59aec718.tar.gz |
MAINT/BUG: Move ctype -> dtype conversion to python, fix issues
This comes with a number of changes:
* Propagating the error if parsing a ctypes object goes wrong, rather than silencing it and trying more things.
* Rejecting ctypes bitfields, which were incorrectly treated as subarrays.
* Rejecting ctypes Unions, which were previously treated as if they were structs
* Rejecting ctypes pointers, which were silently converted into their dereferenced types.
This was particularly dangerous behavior when parsing structs with nested pointers, where swapping out the type changes the struct layout!
* No longer support ctypes duck-types, which includes...
* No longer supporting a `_fields_` attribute on `np.void` subclasses. This was a bug due to a poorly-shared code-path between void and ctypes types.
The upshot is it should be easier to fix future problems in parsing ctypes types.
Diffstat (limited to 'numpy/core/setup.py')
0 files changed, 0 insertions, 0 deletions