From: Konrad H. <hi...@cn...> - 2002-03-07 09:23:11
|
Travis Oliphant <oli...@ee...> 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. -- ------------------------------------------------------------------------------- Konrad Hinsen | E-Mail: hi...@cn... Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.56.24 Rue Charles Sadron | Fax: +33-2.38.63.15.17 45071 Orleans Cedex 2 | Deutsch/Esperanto/English/ France | Nederlands/Francais ------------------------------------------------------------------------------- |