diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-04-18 20:47:39 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-04-18 20:47:39 +0000 |
commit | 021da2c12f9b1adc161197c2d71aef95db9d811f (patch) | |
tree | 3a369319938506e7095fbf49627d98b16ffa4ce9 /numpy/lib/UserArray.py | |
parent | 07e5091227397cdec85d0b07e9a7cbc34ab257ed (diff) | |
download | numpy-021da2c12f9b1adc161197c2d71aef95db9d811f.tar.gz |
Fix bad __getattr__ code causing recursion.
Diffstat (limited to 'numpy/lib/UserArray.py')
-rw-r--r-- | numpy/lib/UserArray.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/lib/UserArray.py b/numpy/lib/UserArray.py index 33d949a40..20a8bb585 100644 --- a/numpy/lib/UserArray.py +++ b/numpy/lib/UserArray.py @@ -191,6 +191,8 @@ class UserArray(object): # Only called after other approaches fail. def __getattr__(self,attr): + if (attr == 'array'): + return object.__getattr__(self, attr) return self.array.__getattribute__(attr) ############################################################# |