From 25a5a74415005f887c51eac99a81ac16c12ec41e Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Tue, 29 Nov 2005 05:59:01 +0000 Subject: 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. --- scipy/base/numeric.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scipy/base/numeric.py') 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() -- cgit v1.2.1