On May 5, 2015 11:05 AM, "Neil Girdhar" <mistersh...@gmail.com> wrote:
>
> Maybe they should have written their code with **kwargs that consumes all
keyword arguments rather than assuming that no keyword arguments would be
added?  The problem with this approach in general is that it makes writing
code unnecessarily convoluted.

If the user asked for keepdims=True, then silently ignoring this is worse
than raising an error.

And I guess I would call this making code necessarily convoluted :-). There
are not that many options for evolving an interface shared by multiple
unrelated libraries.

-n
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to