[PYTHON MATRIX-SIG] More Package concerns

Konrad Hinsen hinsen@ibs.ibs.fr
Thu, 12 Sep 96 09:31:15 +0100


> How do people feel about having all of their files begin with:
> 
> import ni
> import Numeric
> ...

Bad. But what's the alternative?

Since I know next to nothing about ni, I shouldn't speculate, but...
Would it be possible to put "import ni" into Numeric, such that
after "import Numeric" or "from Numeric import *" one could go on to
import subpackages?

Incidentally, I have wondered more than once why import doesn't
accept strings to specify the module to be imported. If that
were the case, a simple "FFT = 'FFT'" in Numeric.py would be
sufficient to get most of the package functionality without any
mysterious "import ni".

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, Ave. 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
=================