From: Konrad H. <hi...@cn...> - 2002-09-13 19:21:19
|
Scott Gilbert <xs...@ya...> writes: > > a. Return the scalar value (what numarray does > > now. seems inconsistent) > > If you think of it as "dereferencing" instead of "indexing", I think this > is most consistent. It takes 3 elements to dereference a rank-3 array, so > it should take 0 elements to dereference a rank-0 array. That would be fine with me, but empty index brackets raise a SyntaxError in Python. 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 ------------------------------------------------------------------------------- |