[SciPy-user] help and lazy importer (again or still ?)

Pearu Peterson pearu at scipy.org
Thu May 6 02:56:37 EDT 2004



On Wed, 5 May 2004, Arnd Baecker wrote:

> > Unfortunately, the only way to avoid the above issue is to import
> > scipy_base or scipy (that imports ppimport module which adds a hook to
> > pydoc.help to handle postponed modules) before trying to get help of scipy
> > objects. You can import scipy_base in $PYTHONSTARTUP script, for instance.
> 
> Well, there is always a price to pay at some point ;-)

It turns out I was wrong, the latest patch in CVS makes also

  help("scipy.integrate")

to work. 

> Just one last question on this, and I will really shut up:
> are there any implications/problems for doc-string extracting
> tools (pydoc, epydoc and such)?
> I'd guess not has they have to look at scipy first
> and then the hook should be installed.

The answer depends on how these tools work internally. If you find any 
problems, please, let me know. Usually the fixes are simple.

Thanks,
Pearu




More information about the SciPy-User mailing list