diff options
author | Larry Bradley <larry.bradley@gmail.com> | 2019-12-02 17:06:42 -0500 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2019-12-02 16:06:42 -0600 |
commit | 03d489735e863e27f3e6ce39b8a85eca440c0231 (patch) | |
tree | 89bda3ea557fa7db40c0b5f9c0543e2ab93151e5 /numpy/distutils/unixccompiler.py | |
parent | 5992098524c9f36288093ef3298d44343735842e (diff) | |
download | numpy-03d489735e863e27f3e6ce39b8a85eca440c0231.tar.gz |
ENH,DEP: Allow multiple axes in expand_dims (#14051)
This PR allows the axis keyword in expand_dims to be a tuple of ints. Previously, axis could only be an int.
This issue was previously discussed in gh-12290 and the changes are based on gh-12290 (comment).
This PR also removes the deprecation added in v1.13 (2017-05-17), where previously axis could be outside of the range (-a.ndim - 1) <= axis <= a.ndim. Such an axis value will now raise an AxisError. Please let me know if it's too soon to remove this deprecation (I could not find any dev docs stating the length of the numpy deprecation cycle).
Closes gh-12290.
Diffstat (limited to 'numpy/distutils/unixccompiler.py')
0 files changed, 0 insertions, 0 deletions