Pearu Peterson wrote:
I have implemented hooks for scipy.pkgload(..) following the idea of Fernando's scipy.mod_load(..) functions with few modifications. It's doc string is given below.
Well done!
... after scipy.pkgload is stabilized, importing scipy the following will happen in scipy name space (according to current info.py files):
import test from test import ScipyTest import base from base import * import basic from basic import fft, ifft, rand, randn, linalg, fftpack, random
I would be interested to know which of these import statements are important to people and which can be removed.
Am I right in thinking that fft, ifft, rand, and randn are functions, while linalg, fftpack, and random are modules? If so, I'd vote for importing the functions but leaving the modules for an explicit pkgload() command.
For example, what would be the recommended way to access array facilities:
from scipy.base import *
or
from scipy import *
? If the former, then we could remove `from base import *` statement.
I think the latter is friendlier ;) -- Ed