diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-08-25 21:26:25 +0200 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-08-25 21:42:00 +0200 |
commit | 007b186a853c8ab37db62042376a9b2d66c18dcf (patch) | |
tree | f6004d34ed2db03a5b3a0b3c53b669408ab25eda /numpy/testing/utils.py | |
parent | 040d0408f4cdb0a472e654acd68c8e1c3fbd84f7 (diff) | |
download | numpy-007b186a853c8ab37db62042376a9b2d66c18dcf.tar.gz |
BUG: set needs-init flag for unicode dtype
Python >= 3.3 does not like printing garbage unicode so printing
np.empty(x, 'U') can throw UnicodeDecode errors.
It is probably easier to just require initializing the dtype as a whole
instead of trying to catching the decode error on all places where it
might occur. Hopefully 0 is a valid code in all codecs.
Closes gh-4994.
Diffstat (limited to 'numpy/testing/utils.py')
0 files changed, 0 insertions, 0 deletions