diff options
author | Travis Oliphant <oliphant@enthought.com> | 2007-10-18 23:41:59 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2007-10-18 23:41:59 +0000 |
commit | b1ff17a473ca58a18452ad1c0e7fd05ea239f016 (patch) | |
tree | fe4c3eb834e89e239c233de3b9311b054adfe7eb /numpy/lib/function_base.py | |
parent | 8f7a0f517adc8bd49bbfbf024ae0992269801785 (diff) | |
download | numpy-b1ff17a473ca58a18452ad1c0e7fd05ea239f016.tar.gz |
Allow subclasses through vectorize.
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 3d04a0258..2c7b78e5c 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -941,7 +941,7 @@ class vectorize(object): self.ufunc = frompyfunc(self.thefunc, nargs, self.nout) # Convert to object arrays first - newargs = [asarray(arg,dtype=object) for arg in args] + newargs = [asanyarray(arg,dtype=object) for arg in args] if self.nout == 1: _res = array(self.ufunc(*newargs),copy=False).astype(self.otypes[0]) else: |