diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2014-05-05 16:44:39 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2014-05-06 16:24:10 -0600 |
commit | ff99924f3a82ee09cb76cc6cc94fc196a112fb30 (patch) | |
tree | de9cae03a83b37048c90e5429d246a6bd1d43da1 /doc | |
parent | 6f5329fdf45dc97314fa593d0a5a4c1d24e753c5 (diff) | |
download | numpy-ff99924f3a82ee09cb76cc6cc94fc196a112fb30.tar.gz |
MAINT: Change default inplace, ufunc(...,out=x) casting to same_kind.
There has been a warning of this change since numpy 1.7. numpy 1.10
is a good time to do it. The nanvar function needed a fix after the
change, and the tests and documentation are updated.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/reference/ufuncs.rst | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/doc/source/reference/ufuncs.rst b/doc/source/reference/ufuncs.rst index 2ae794f59..3d6112058 100644 --- a/doc/source/reference/ufuncs.rst +++ b/doc/source/reference/ufuncs.rst @@ -313,16 +313,15 @@ advanced usage and will not typically be used. .. versionadded:: 1.6 + May be 'no', 'equiv', 'safe', 'same_kind', or 'unsafe'. + See :func:`can_cast` for explanations of the parameter values. + Provides a policy for what kind of casting is permitted. For compatibility - with previous versions of NumPy, this defaults to 'unsafe'. May be 'no', - 'equiv', 'safe', 'same_kind', or 'unsafe'. See :func:`can_cast` for - explanations of the parameter values. - - In a future version of numpy, this argument will default to - 'same_kind'. As part of this transition, starting in version 1.7, - ufuncs will produce a DeprecationWarning for calls which are - allowed under the 'unsafe' rules, but not under the 'same_kind' - rules. + with previous versions of NumPy, this defaults to 'unsafe' for numpy < 1.7. + In numpy 1.7 a transition to 'same_kind' was begun where ufuncs produce a + DeprecationWarning for calls which are allowed under the 'unsafe' + rules, but not under the 'same_kind' rules. In numpy 1.10 the default + will be 'same_kind'. *order* |