[Numpy-discussion] TypeError: 'module' object is not callable

Alan G Isaac aisaac@american....
Tue Jan 12 08:06:33 CST 2010


>>> filter(lambda x: x.startswith('eig'),dir(np.linalg))
['eig', 'eigh', 'eigvals', 'eigvalsh']
>>> import scipy.linalg as spla
>>> filter(lambda x: x.startswith('eig'),dir(spla))
['eig', 'eig_banded', 'eigh', 'eigvals', 'eigvals_banded', 'eigvalsh']

hth,
Alan Isaac



More information about the NumPy-Discussion mailing list