From 505b0f4c11acb1ade1e91f1360ffa6a33cbd0b51 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Fri, 19 Jun 2015 19:54:15 -0600 Subject: MAINT: Mark deprecation warning with a date and Numpy version. This is to make it easier to find and remove deprecated features. It would be a good idea if all deprecations were made with similar comments. --- numpy/core/numeric.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'numpy/core/numeric.py') diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index bf22f6954..a432f39e4 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -900,6 +900,7 @@ def correlate(a, v, mode='valid', old_behavior=False): # the old behavior should be made available under a different name, see thread # http://thread.gmane.org/gmane.comp.python.numeric.general/12609/focus=12630 if old_behavior: + # 2009-07-18 RemoveMe warnings.warn(""" The old behavior of correlate was deprecated for 1.4.0, and will be completely removed for NumPy 2.0. @@ -1114,6 +1115,7 @@ def alterdot(): restoredot : `restoredot` undoes the effects of `alterdot`. """ + # 2014-08-13, 1.10 warnings.warn("alterdot no longer does anything.", DeprecationWarning) @@ -1137,6 +1139,7 @@ def restoredot(): alterdot : `restoredot` undoes the effects of `alterdot`. """ + # 2014-08-13, 1.10 warnings.warn("restoredot no longer does anything.", DeprecationWarning) -- cgit v1.2.1 From a27f56069fb883c44dd4986d15e751162d85b621 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Sat, 20 Jun 2015 14:42:12 -0600 Subject: DEP: Add notes to some deprecations. Some keywords are deprecated and slated for removal in numpy 2.0. Add comment to deprecation date to clarify that. --- numpy/core/numeric.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/numeric.py') diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index a432f39e4..24d92f16f 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -900,7 +900,7 @@ def correlate(a, v, mode='valid', old_behavior=False): # the old behavior should be made available under a different name, see thread # http://thread.gmane.org/gmane.comp.python.numeric.general/12609/focus=12630 if old_behavior: - # 2009-07-18 RemoveMe + # 2009-07-18 Cannot remove without replacement function. warnings.warn(""" The old behavior of correlate was deprecated for 1.4.0, and will be completely removed for NumPy 2.0. -- cgit v1.2.1