summaryrefslogtreecommitdiff
path: root/scipy/base/numeric.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2005-09-21 07:30:54 +0000
committerTravis Oliphant <oliphant@enthought.com>2005-09-21 07:30:54 +0000
commitc5e69853cfff88c547dafc3516b65a61e6f10e24 (patch)
tree91e42b95142cf4ca4c9d0acf646a0c2c7a0a5689 /scipy/base/numeric.py
parent052a7b2e3276a303be1083022fc24d43084d2e14 (diff)
downloadnumpy-c5e69853cfff88c547dafc3516b65a61e6f10e24.tar.gz
Fixed ufunc error handling.
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 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()