summaryrefslogtreecommitdiff
path: root/numpy/core/numeric.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-07-03 22:32:32 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-07-03 22:32:32 +0000
commit17d8921d6d37745e01601fc19497ae2b4029b10c (patch)
treeb57d344f9d41b391778c9cf118fd9e7421a79950 /numpy/core/numeric.py
parentfb9e2b032c62fa254bb1996e8c4e50488ab13999 (diff)
downloadnumpy-17d8921d6d37745e01601fc19497ae2b4029b10c.tar.gz
Check for error and asthetic spacing change.
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r--numpy/core/numeric.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py
index 71c74c123..a74fb158b 100644
--- a/numpy/core/numeric.py
+++ b/numpy/core/numeric.py
@@ -537,9 +537,11 @@ def setbufsize(size):
"""Set the size of the buffer used in ufuncs.
"""
if size > 10e6:
- raise ValueError, "Buffer size too big... %s" % size
+ raise ValueError, "Buffer size, %s, is too big." % size
if size < 5:
- raise ValueError, "Buffer size too small... %s" %size
+ raise ValueError, "Buffer size, %s, is too small." %size
+ if size % 16 != 0:
+ raise ValueError, "Buffer size, %s, is not a multiple of 16." %size
pyvals = umath.geterrobj()
old = getbufsize()