diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-09-21 07:30:54 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-09-21 07:30:54 +0000 |
commit | c5e69853cfff88c547dafc3516b65a61e6f10e24 (patch) | |
tree | 91e42b95142cf4ca4c9d0acf646a0c2c7a0a5689 /scipy/base/numeric.py | |
parent | 052a7b2e3276a303be1083022fc24d43084d2e14 (diff) | |
download | numpy-c5e69853cfff88c547dafc3516b65a61e6f10e24.tar.gz |
Fixed ufunc error handling.
Diffstat (limited to 'scipy/base/numeric.py')
-rw-r--r-- | scipy/base/numeric.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scipy/base/numeric.py b/scipy/base/numeric.py index eb3bf8f1c..ef7c38627 100644 --- a/scipy/base/numeric.py +++ b/scipy/base/numeric.py @@ -308,6 +308,8 @@ def geterr(): return res def setbufsize(size, where=0): + if size > 10e6: + raise ValueError, "Very big buffers.. %s" % size frame = sys._getframe().f_back try: wh = where.lower() |