diff options
author | LeoMao <LMao20001@gmail.com> | 2014-03-11 16:15:21 +0800 |
---|---|---|
committer | LeoMao <LMao20001@gmail.com> | 2014-03-11 16:15:21 +0800 |
commit | 3d419a1537446fab061d2774bdedf1e634a0ef31 (patch) | |
tree | d81b02861e947ff9414b9cd5ebe095b31e18a0b1 /numpy/lib/function_base.py | |
parent | 0013ffb1c438846e83497b2b343e20f9531c27ae (diff) | |
download | numpy-3d419a1537446fab061d2774bdedf1e634a0ef31.tar.gz |
when initialize a vectorize object, always set self._ufunc to None first. fix #3285
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 62ced0509..77d09cfa3 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -1616,8 +1616,7 @@ class vectorize(object): excluded = set() self.excluded = set(excluded) - if self.otypes and not self.excluded: - self._ufunc = None # Caching to improve default performance + self._ufunc = None # Caching to improve default performance def __call__(self, *args, **kwargs): """ |