diff options
author | Guilherme Leobas <guilhermeleobas@gmail.com> | 2019-08-08 08:31:42 -0300 |
---|---|---|
committer | Matti Picus <matti.picus@gmail.com> | 2019-08-08 14:31:42 +0300 |
commit | 68626acba30ab59fa1ef27c25eb7ed93f227396e (patch) | |
tree | 8f0cb6135ef50abd76da3213d257f291425bcd5e /numpy/core/fromnumeric.py | |
parent | 5096930221477593b8e71f688e3c71ef10d7ee18 (diff) | |
download | numpy-68626acba30ab59fa1ef27c25eb7ed93f227396e.tar.gz |
DEP: Deprecate np.alen (#14181)
* Deprecate and fix tests for alen
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r-- | numpy/core/fromnumeric.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py index 75a6bae7f..c9ea44425 100644 --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -2782,6 +2782,10 @@ def alen(a): 7 """ + # NumPy 1.18.0, 2019-08-02 + warnings.warn( + "`np.alen` is deprecated, use `len` instead", + DeprecationWarning, stacklevel=2) try: return len(a) except TypeError: |