summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2007-10-18 23:41:59 +0000
committerTravis Oliphant <oliphant@enthought.com>2007-10-18 23:41:59 +0000
commitb1ff17a473ca58a18452ad1c0e7fd05ea239f016 (patch)
treefe4c3eb834e89e239c233de3b9311b054adfe7eb /numpy/lib/function_base.py
parent8f7a0f517adc8bd49bbfbf024ae0992269801785 (diff)
downloadnumpy-b1ff17a473ca58a18452ad1c0e7fd05ea239f016.tar.gz
Allow subclasses through vectorize.
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r--numpy/lib/function_base.py2
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: