[SciPy-user] help/import question

Steve Schmerler elcorto at gmx.net
Fri Jan 6 12:27:46 CST 2006


Steve Schmerler wrote:
> Hi
> 
> Some things I discoverd while playing arround with the recent 
> numpy/scipy svn:
> 
> #################################################################################################################
> 
> In [9]: ?scipy
> 
> [...]
> 
>      Available subpackages
>      ---------------------
>      stats       --- Statistical Functions
>      sparse      --- Sparse matrix [*]
>      lib         --- Python wrappers to external libraries
>      linalg      --- Linear algebra routines
>      signal      --- Signal Processing Tools [*]
>      misc        --- Various utilities that don't have another home.
>      interpolate --- Interpolation Tools [*]
>      optimize    --- Optimization Tools
>      cluster     --- Vector Quantization / Kmeans [*]
>      fftpack     --- Discrete Fourier Transform algorithms
>      io          --- Data input and output [*]
>      integrate   --- Integration routines [*]
>      lib.lapack  --- Wrappers to LAPACK library
>      special     --- Special Functions
>      lib.blas    --- Wrappers to BLAS library [*]
>        [*] - using a package requires explicit import
> 
> 
> #################################################################################################################
> 
> The *-marking of subpackages tells me that I can do
> 
> import scipy
> ?scipy.stats
> 
> but to get help on sparse I have to
> 
> import scipy.signal
> ?scipy.signal
> 

Of course I ment

import scipy.sparse
?scipy.sparse

:)

> Is this desired? If so, why?
> 
> 
> 
> The scipy.sparse help contains nothing:
> 
> In [5]: import scipy.sparse
> 
> In [6]: ?scipy.sparse
> Type:           module
> Base Class:     <type 'module'>
> String Form:    <module 'scipy.sparse' from 
> '/usr/lib/python2.3/site-packages/scipy/sparse/__init__.pyc'>
> Namespace:      Interactive
> File:           /usr/lib/python2.3/site-packages/scipy/sparse/__init__.py
> Docstring:
>      Sparse matrix
>      =============
> 
> 
> In [7]:
> 
> 
> cheers,
> steve
> 


-- 
"People like Blood Sausage too. People are Morons!" -- Phil Connors, 
Groundhog Day



More information about the SciPy-user mailing list