[Numpy-discussion] Re: Numpy-discussion digest, Vol 1 #406 - 13 msgs

Konrad Hinsen hinsen at cnrs-orleans.fr
Thu Mar 7 01:24:01 CST 2002

Travis Oliphant <oliphant at ee.byu.edu> writes:

> > (a) To a person who only uses Numpy occasionally, it is not obvious
> > that an argument is "magic".   That makes the code less readable.
> That can be a "problem", but it is a "problem" in many languages that
> currently are in wide-spread use in numerical computing.
> Apparently, the convenience outweighs the perceived concern.  Currently,

But some people, like me, prefer Python to other languages for exactly
that reason. I'll give up shortness for clarity any time.

So I am certainly agains "magic" objects, but different kinds of
indexing objects, provided that they can be inspected/printed in the
code, are nothing magic to me. At the moment, each axis index can be
an integer, a range, and a slice. Adding a "boolean mask" to this
seems like a natural extension. And even "reduction" operations such
as Paul mentioned make perfect sense.

Konrad Hinsen                            | E-Mail: hinsen at cnrs-orleans.fr
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-
Rue Charles Sadron                       | Fax:  +33-
45071 Orleans Cedex 2                    | Deutsch/Esperanto/English/
France                                   | Nederlands/Francais

More information about the Numpy-discussion mailing list