From 56647963b940e56571ae9638e7c5f77ed58aadbb Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Tue, 27 Apr 2010 03:35:37 +0000 Subject: Move 1.5.0 release notes to 2.0.0. --- doc/release/1.5.0-notes.rst | 37 ------------------------------------- doc/release/2.0.0-notes.rst | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 37 deletions(-) delete mode 100644 doc/release/1.5.0-notes.rst create mode 100644 doc/release/2.0.0-notes.rst (limited to 'doc/release') diff --git a/doc/release/1.5.0-notes.rst b/doc/release/1.5.0-notes.rst deleted file mode 100644 index 42254b789..000000000 --- a/doc/release/1.5.0-notes.rst +++ /dev/null @@ -1,37 +0,0 @@ -========================= -NumPy 1.5.0 Release Notes -========================= - - -Plans -===== - -This release has the following aims: - -* Python 3 compatibility -* :pep:`3118` compatibility - - -Highlights -========== - - -New features -============ - -Warning on casting complex to real -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Numpy now emits a `numpy.ComplexWarning` when a complex number is cast -into a real number. For example: - - >>> x = np.array([1,2,3]) - >>> x[:2] = np.array([1+2j, 1-2j]) - ComplexWarning: Casting complex values to real discards the imaginary part - -The cast indeed discards the imaginary part, and this may not be the -intended behavior in all cases, hence the warning. This warning can be -turned off in the standard way: - - >>> import warnings - >>> warnings.simplefilter("ignore", np.ComplexWarning) diff --git a/doc/release/2.0.0-notes.rst b/doc/release/2.0.0-notes.rst new file mode 100644 index 000000000..06e29de6b --- /dev/null +++ b/doc/release/2.0.0-notes.rst @@ -0,0 +1,37 @@ +========================= +NumPy 2.0.0 Release Notes +========================= + + +Plans +===== + +This release has the following aims: + +* Python 3 compatibility +* :pep:`3118` compatibility + + +Highlights +========== + + +New features +============ + +Warning on casting complex to real +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Numpy now emits a `numpy.ComplexWarning` when a complex number is cast +into a real number. For example: + + >>> x = np.array([1,2,3]) + >>> x[:2] = np.array([1+2j, 1-2j]) + ComplexWarning: Casting complex values to real discards the imaginary part + +The cast indeed discards the imaginary part, and this may not be the +intended behavior in all cases, hence the warning. This warning can be +turned off in the standard way: + + >>> import warnings + >>> warnings.simplefilter("ignore", np.ComplexWarning) -- cgit v1.2.1