Author: Richard Plangger <r...@pasra.at> Branch: vecopt-merge Changeset: r78922:5ba373083b5c Date: 2015-08-11 18:20 +0200 http://bitbucket.org/pypy/pypy/changeset/5ba373083b5c/
Log: passing None to space.call_method is a bad idea diff --git a/pypy/module/micronumpy/ufuncs.py b/pypy/module/micronumpy/ufuncs.py --- a/pypy/module/micronumpy/ufuncs.py +++ b/pypy/module/micronumpy/ufuncs.py @@ -313,7 +313,7 @@ out.implementation.setitem(0, res) res = out if call__array_wrap__: - res = space.call_method(obj, '__array_wrap__', res, None) + res = space.call_method(obj, '__array_wrap__', res, space.w_None) return res else: @@ -360,7 +360,7 @@ loop.reduce( space, self.func, obj, axis_flags, dtype, out, self.identity) if call__array_wrap__: - out = space.call_method(obj, '__array_wrap__', out, None) + out = space.call_method(obj, '__array_wrap__', out, space.w_None) return out def descr_outer(self, space, __args__): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit