diff options
author | Jay Bourque <jay.bourque@continuum.io> | 2013-12-20 12:08:53 -0600 |
---|---|---|
committer | Jay Bourque <jay.bourque@continuum.io> | 2014-02-25 14:53:28 -0600 |
commit | 1f9d4d2613d7c8bccf7e16720e8d0fa87e74e34a (patch) | |
tree | 76f7d671d3a593849127f74d53b6beed6ae3911c /numpy/polynomial/polyutils.py | |
parent | 56eb28ed29573d644696743804decf3a8d3260fc (diff) | |
download | numpy-1f9d4d2613d7c8bccf7e16720e8d0fa87e74e34a.tar.gz |
BUG: Fix promote_types, can_cast, as astype issues
- promote_types does not return correct string size for integer and string arguments. Fix so that integer and string types are promoted to string type that is long enough to hold integer type safely cast to string.
- can_cast incorrectly returns True for certain integer and string types. Fix so that can_cast only returns True if string type is long enough to hold integer type safely cast to string.
- calling astype to convert integer to string should fail if string type is not long enough to hold integer converted to string and casting argument is set to "safe".
Diffstat (limited to 'numpy/polynomial/polyutils.py')
0 files changed, 0 insertions, 0 deletions