summaryrefslogtreecommitdiff
path: root/numpy/lib/arraypad.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2020-12-21 16:46:25 -0600
committerSebastian Berg <sebastian@sipsolutions.net>2020-12-21 18:03:13 -0600
commit50dce51e9fcbf5d80bfdc1bfe2b41fc9a9e9f9cc (patch)
tree88dec231a50077dbc4fa715543a33f9149d50641 /numpy/lib/arraypad.py
parent74e135b261e4613963cc50ddb97ac2edbd5936ba (diff)
downloadnumpy-50dce51e9fcbf5d80bfdc1bfe2b41fc9a9e9f9cc.tar.gz
BUG: Fix concatenation when the output is "S" or "U"
Previously, the dtype was used, this now assumes that we want to cast to a string of (unknown) length. This is a simplified version of what happens in `np.array()` or `arr.astype()` (it does never inspect the values, e.g. for object casts). This is more complex as I would like, and with the refactor of ResultType and similar can be cleaned up a bit more hopefully. Note that currently, object to "S" or "U" casts simply return length 64 strings, but with the new version, this will be an error (although the error message probably needs improvement). This is a behaviour inherited from other places however.
Diffstat (limited to 'numpy/lib/arraypad.py')
0 files changed, 0 insertions, 0 deletions