summaryrefslogtreecommitdiff
path: root/numpy/core/ma.py
diff options
context:
space:
mode:
authorsasha <sasha@localhost>2006-03-01 01:19:01 +0000
committersasha <sasha@localhost>2006-03-01 01:19:01 +0000
commit8f6eca691ad76cf0264ed9c8e2893e9160efe990 (patch)
tree8dd45943e87415a5fdc571d54fae9b9b0414e3bb /numpy/core/ma.py
parent60a6705329186d57614e551c9e75dfd3158c2787 (diff)
downloadnumpy-8f6eca691ad76cf0264ed9c8e2893e9160efe990.tar.gz
made ma friendlier to pydoc
Diffstat (limited to 'numpy/core/ma.py')
-rw-r--r--numpy/core/ma.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/core/ma.py b/numpy/core/ma.py
index 0d6bf503c..26631693b 100644
--- a/numpy/core/ma.py
+++ b/numpy/core/ma.py
@@ -298,6 +298,7 @@ class masked_unary_operation:
self.fill = fill
self.domain = domain
self.__doc__ = getattr(aufunc, "__doc__", str(aufunc))
+ self.__name__ = getattr(aufunc, "__name__", str(aufunc))
ufunc_domain[aufunc] = domain
ufunc_fills[aufunc] = fill,
@@ -342,6 +343,7 @@ class domained_binary_operation:
self.fillx = fillx
self.filly = filly
self.__doc__ = getattr(abfunc, "__doc__", str(abfunc))
+ self.__name__ = getattr(abfunc, "__name__", str(abfunc))
ufunc_domain[abfunc] = domain
ufunc_fills[abfunc] = fillx,filly