summaryrefslogtreecommitdiff
path: root/numpy/linalg/linalg.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2015-06-19 19:54:15 -0600
committerCharles Harris <charlesr.harris@gmail.com>2015-06-21 12:43:06 -0600
commit505b0f4c11acb1ade1e91f1360ffa6a33cbd0b51 (patch)
treeb1141ad866027a2e053f750c918fd4eb52a7fb21 /numpy/linalg/linalg.py
parentf6861923209df65d9c4253368061072eda67ea77 (diff)
downloadnumpy-505b0f4c11acb1ade1e91f1360ffa6a33cbd0b51.tar.gz
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.
Diffstat (limited to 'numpy/linalg/linalg.py')
-rw-r--r--numpy/linalg/linalg.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/linalg/linalg.py b/numpy/linalg/linalg.py
index 022498c18..7eac95248 100644
--- a/numpy/linalg/linalg.py
+++ b/numpy/linalg/linalg.py
@@ -730,12 +730,14 @@ def qr(a, mode='reduced'):
"""
if mode not in ('reduced', 'complete', 'r', 'raw'):
if mode in ('f', 'full'):
+ # 2013-04-01, 1.8
msg = "".join((
"The 'full' option is deprecated in favor of 'reduced'.\n",
"For backward compatibility let mode default."))
warnings.warn(msg, DeprecationWarning)
mode = 'reduced'
elif mode in ('e', 'economic'):
+ # 2013-04-01, 1.8
msg = "The 'economic' option is deprecated.",
warnings.warn(msg, DeprecationWarning)
mode = 'economic'