summaryrefslogtreecommitdiff
path: root/numpy/core/arrayprint.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2015-03-11 10:07:53 -0600
committerCharles Harris <charlesr.harris@gmail.com>2015-03-11 11:21:06 -0600
commitf1cfc4f00cb61a363976ea0e38c80500ab91d172 (patch)
tree0d42dd0b9f50a75ea78e10e89b7c08054d295e73 /numpy/core/arrayprint.py
parenta7bea17c679804a4bbde0676179c7c7b53b8ae00 (diff)
downloadnumpy-f1cfc4f00cb61a363976ea0e38c80500ab91d172.tar.gz
BUG: loadtxt fails with complex data in Python 3.
The problem is that the Python complex type constructor only accepts a pair of numbers or a string, unlike other numeric types it does not work with byte strings. The numpy error is subtle, as loadtxt opens the file in the default text mode, but then converts the input lines to byte strings when they are split into separate values. The fix here is to convert the values back to strings in the complex converter. Closes #5655.
Diffstat (limited to 'numpy/core/arrayprint.py')
0 files changed, 0 insertions, 0 deletions