diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2008-08-26 19:32:02 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2008-08-26 19:32:02 +0000 |
commit | 755cc217ee64cf22118493bf02474024c23d45cb (patch) | |
tree | 56da55cc8f0509341175f35dcc710e00095b4f66 /numpy/ma/extras.py | |
parent | 2c7654ad26fb9e374ce062461d3986c31d609a49 (diff) | |
download | numpy-755cc217ee64cf22118493bf02474024c23d45cb.tar.gz |
Small style cleanup. Need work for ticket #893.
Diffstat (limited to 'numpy/ma/extras.py')
-rw-r--r-- | numpy/ma/extras.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/ma/extras.py b/numpy/ma/extras.py index 77b3d1923..34205cdc1 100644 --- a/numpy/ma/extras.py +++ b/numpy/ma/extras.py @@ -98,10 +98,12 @@ class _fromnxfunction: def __init__(self, funcname): self.__name__ = funcname self.__doc__ = self.getdoc() + def getdoc(self): "Retrieves the __doc__ string from the function." return getattr(np, self.__name__).__doc__ +\ "*Notes*:\n (The function is applied to both the _data and the _mask, if any.)" + def __call__(self, *args, **params): func = getattr(np, self.__name__) if len(args)==1: |