diff options
author | Stephan Hoyer <shoyer@google.com> | 2018-10-23 07:53:58 -0700 |
---|---|---|
committer | Stephan Hoyer <shoyer@google.com> | 2018-10-23 07:57:40 -0700 |
commit | 8bab96faf2cb740536712e49e92e133626087018 (patch) | |
tree | b16d0f4d121d588ca3219b95d3c4304059cddacd /numpy/core/fromnumeric.py | |
parent | 42a5bddc937ef02175d52a3ab3b3da6229e1ecb2 (diff) | |
download | numpy-8bab96faf2cb740536712e49e92e133626087018.tar.gz |
MAINT: set preferred __module__ for numpy functions
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r-- | numpy/core/fromnumeric.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py index 2fdbf3e23..7dfb52fea 100644 --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -3,16 +3,17 @@ """ from __future__ import division, absolute_import, print_function +import functools import types import warnings import numpy as np from .. import VisibleDeprecationWarning from . import multiarray as mu +from . import overrides from . import umath as um from . import numerictypes as nt from .numeric import asarray, array, asanyarray, concatenate -from .overrides import array_function_dispatch from . import _methods _dt_ = nt.sctype2char @@ -32,6 +33,9 @@ _gentype = types.GeneratorType # save away Python sum _sum_ = sum +array_function_dispatch = functools.partial( + overrides.array_function_dispatch, module='numpy') + # functions that are now methods def _wrapit(obj, method, *args, **kwds): |