[PYTHON MATRIX-SIG] Building index tuples

Konrad Hinsen hinsen@ibs.ibs.fr
Tue, 22 Oct 96 12:54:47 +0100


I like the new style of building up index tuples less and less.
The bits and pieces I need are:

1) The built-in function slice() that needs at least one argument
   and shares the strange feature of range() that the *first*
   argument is optional.
2) The special meaning of None as an argument to slice().
3) The object NewAxis, to be imported from Numeric.
4) The object Ellipses (soon to be Ellipsis), which is built-in in
   Python 1.4.

*I* don't want to explain all this to a new user (whom I just told how
terribly consistent Python is)!

Konrad.
-- 
-------------------------------------------------------------------------------
Konrad Hinsen                          | E-Mail: hinsen@ibs.ibs.fr
Laboratoire de Dynamique Moleculaire   | Tel.: +33-76.88.99.28
Institut de Biologie Structurale       | Fax:  +33-76.88.54.94
41, av. des Martyrs                    | Deutsch/Esperanto/English/
38027 Grenoble Cedex 1, France         | Nederlands/Francais
-------------------------------------------------------------------------------

=================
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================