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/fromnumeric.py | 1 + 1 file changed, 1 insertion(+) (limited to 'numpy/core/fromnumeric.py') diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py index 3741d821d..5f96b1d61 100644 --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -2624,6 +2624,7 @@ def rank(a): 0 """ + # 2014-04-12, 1.9 warnings.warn( "`rank` is deprecated; use the `ndim` attribute or function instead. " "To find the rank of a matrix see `numpy.linalg.matrix_rank`.", -- cgit v1.2.1