[PYTHON MATRIX-SIG] J-style arrays in Python

Hinsen Konrad hinsenk@ere.umontreal.ca
Wed, 27 Sep 1995 11:01:45 -0400


   I don't agree with this.  In general, I'm not a fan of 
   "from spam import *".

Neither am I, in general. But...

   > (important for calculator-style use).

   Why?

To avoid having to type the module name all over again, of course. I
am using my array module mostly to work (interactively) on simulation
results read in from files (I didn't include the I/O in the version I
sent around, because it still works only for a few special cases). So
I am typing things like

  sqrt(Array("file1"))*Array("file2)

which I prefer a lot to

  Array.sqrt(Array.Array("file1"))*Array.Array("file2)

-------------------------------------------------------------------------------
Konrad Hinsen                     | E-Mail: hinsenk@ere.umontreal.ca
Departement de chimie             | Tel.: +1-514-343-6111 ext. 3953
Universite de Montreal            | Fax:  +1-514-343-7586
C.P. 6128, succ. A                | Deutsch/Esperanto/English/Nederlands/
Montreal (QC) H3C 3J7             | Francais (phase experimentale)
-------------------------------------------------------------------------------

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

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