summaryrefslogtreecommitdiff
path: root/numpy/lib/UserArray.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-02-24 02:17:39 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-02-24 02:17:39 +0000
commit872a836d920c0c45321c862d73f2aa9ec9c77f51 (patch)
tree27349dc9e62ba5fb60d30f6922b6a91d3c8f513d /numpy/lib/UserArray.py
parentf909e9889cf1b686b689c671a53d5f18b9505021 (diff)
downloadnumpy-872a836d920c0c45321c862d73f2aa9ec9c77f51.tar.gz
Add check for rint and a default implementation if not present. Make UserArray a new-style class.
Diffstat (limited to 'numpy/lib/UserArray.py')
-rw-r--r--numpy/lib/UserArray.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/UserArray.py b/numpy/lib/UserArray.py
index 243b22d70..b33ff31f1 100644
--- a/numpy/lib/UserArray.py
+++ b/numpy/lib/UserArray.py
@@ -6,7 +6,7 @@
from numpy.core import *
import string
-class UserArray:
+class UserArray(object):
def __init__(self, data, dtype=None, copy=True):
self.array = array(data, dtype, copy)
self.shape = self.array.shape