diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-06-19 13:19:59 +0200 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-06-19 13:24:49 +0200 |
commit | 621c0a6d49e369c5813a2d89d73a6e81093d9f54 (patch) | |
tree | 4431b8f7484327f5342f489e916063f1a6a797a3 /numpy/core/numeric.py | |
parent | 133d4f464ed3cb8639afc075c8c097a2c6594b6d (diff) | |
download | numpy-621c0a6d49e369c5813a2d89d73a6e81093d9f54.tar.gz |
MAINT: move star imports to end of numeric.py
allows static analysis (e.g. pyflakes) to detect undefined names
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index a85e8514c..12e690f1e 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -6,9 +6,11 @@ import warnings import collections from . import multiarray from . import umath -from .umath import * +from .umath import (invert, sin, UFUNC_BUFSIZE_DEFAULT, ERR_IGNORE, + ERR_WARN, ERR_RAISE, ERR_CALL, ERR_PRINT, ERR_LOG, + ERR_DEFAULT, PINF, NAN) from . import numerictypes -from .numerictypes import * +from .numerictypes import longlong, intc, int_, float_, complex_, bool_ if sys.version_info[0] >= 3: import pickle @@ -356,9 +358,6 @@ def extend_all(module): if a not in adict: __all__.append(a) -extend_all(umath) -extend_all(numerictypes) - newaxis = None @@ -2832,6 +2831,10 @@ nan = NaN = NAN False_ = bool_(False) True_ = bool_(True) +from .umath import * +from .numerictypes import * from . import fromnumeric from .fromnumeric import * extend_all(fromnumeric) +extend_all(umath) +extend_all(numerictypes) |