diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-07-30 23:24:41 +0200 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-07-31 00:20:11 +0200 |
commit | 3f0cb83f128f3bc61ff9eae2ff5bdc882c922a93 (patch) | |
tree | e39dce1df2efb2ce86a891e88214e04217d78837 /numpy/lib/user_array.py | |
parent | 778af02eb7c1668e751f435cd2a4952a362a0433 (diff) | |
download | numpy-3f0cb83f128f3bc61ff9eae2ff5bdc882c922a93.tar.gz |
ENH: better error message for invalid axis and concatenate inputs
the old errors
np.concatenate(1,2)
TypeError: object of type 'int' has no len()
concatenate([1], [2])
TypeError: an integer is required
are not very unhelpful, add a new internal function that allows adding
some context to axis argument conversion failures and check for sequence
inputs in concatenate.
Closes gh-4923.
Diffstat (limited to 'numpy/lib/user_array.py')
0 files changed, 0 insertions, 0 deletions