[PYTHON MATRIX-SIG] More naming/module issues
Perry A. Stoll
pas@lems.brown.edu
Mon, 9 Sep 1996 11:16:56 -0400 (EDT)
On Mon, 9 Sep 1996, Konrad Hinsen wrote:
> > And you don't get them. If your code says
> >
> > import FFT.NAG
> >
> > then FFT.FFTPACK and others are not loaded. So this sounds about right.
>
> It seems I have missed some important feature of Python. How can I get
> the symbol "NAG" in module "FFT" assigned to a module without
> writing "import NAG" inside FFT.py?
>
> Konrad
You can't do it by importing the "module" FFT, but the FFT "package"
should do just fine. It's a nice feature - you should definitely find out
about it. There is documentation on packages at the head of the file ni.py
in the standard distribution.
-Perry
<pas@lems.brown.edu>
=================
MATRIX-SIG - SIG on Matrix Math for Python
send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================