[pypy-dev] [pypy-commit] pypy default: fix for None in kwargs

Maciej Fijalkowski fijall at gmail.com
Sat Oct 13 23:29:53 CEST 2012


Did this fail any test? If not, it should come with one.

On Sat, Oct 13, 2012 at 9:26 PM, mattip <noreply at buildbot.pypy.org> wrote:
> Author: mattip <matti.picus at gmail.com>
> Branch:
> Changeset: r58111:e537e0093563
> Date: 2012-10-13 21:26 +0200
> http://bitbucket.org/pypy/pypy/changeset/e537e0093563/
>
> Log:    fix for None in kwargs
>
> diff --git a/pypy/module/micronumpy/interp_numarray.py b/pypy/module/micronumpy/interp_numarray.py
> --- a/pypy/module/micronumpy/interp_numarray.py
> +++ b/pypy/module/micronumpy/interp_numarray.py
> @@ -661,7 +661,7 @@
>              raise operationerrfmt(space.w_ValueError, "Unknown order: %s",
>                                    order)
>      if isinstance(w_object, W_NDimArray):
> -        if (not space.is_w(w_dtype, space.w_None) and
> +        if (not space.is_none(w_dtype) and
>              w_object.get_dtype() is not w_dtype):
>              raise OperationError(space.w_NotImplementedError, space.wrap(
>                                    "copying over different dtypes unsupported"))
> _______________________________________________
> pypy-commit mailing list
> pypy-commit at python.org
> http://mail.python.org/mailman/listinfo/pypy-commit


More information about the pypy-dev mailing list