summaryrefslogtreecommitdiff
path: root/scipy/base/numeric.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2005-11-29 05:59:01 +0000
committerTravis Oliphant <oliphant@enthought.com>2005-11-29 05:59:01 +0000
commit25a5a74415005f887c51eac99a81ac16c12ec41e (patch)
tree4272e4b8c7780cb8fa852fea771287819d61bb1b /scipy/base/numeric.py
parentaa61c8c72f2ac24c5c144ebc9a7bc3e248f40c6b (diff)
downloadnumpy-25a5a74415005f887c51eac99a81ac16c12ec41e.tar.gz
Add GetPyValues to UFunc_API. Add mechanism so that if default ufunc pyvalues are in use the variable look up is by-passed. A method call updates this static variable.
Diffstat (limited to 'scipy/base/numeric.py')
-rw-r--r--scipy/base/numeric.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scipy/base/numeric.py b/scipy/base/numeric.py
index f37947897..ce3c7a758 100644
--- a/scipy/base/numeric.py
+++ b/scipy/base/numeric.py
@@ -332,6 +332,7 @@ def _setpyvals(lst, frame, where=0):
elif where == 2 or wh == 'b':
frame.f_builtins[UFUNC_PYVALS_NAME] = lst
+ umath.update_use_defaults()
return
def _getpyvals(frame):
@@ -414,6 +415,7 @@ def _setdef():
defval = [UFUNC_BUFSIZE_DEFAULT, ERR_DEFAULT, None]
frame.f_globals[UFUNC_PYVALS_NAME] = defval
frame.f_builtins[UFUNC_PYVALS_NAME] = defval
+ umath.update_use_defaults()
# set the default values
_setdef()