1 Mar 16:20 2004

### Re: help and lazy-import (?)

Arnd Baecker <arnd.baecker <at> web.de>

2004-03-01 15:20:02 GMT

2004-03-01 15:20:02 GMT

Hi, On Fri, 27 Feb 2004, Arnd Baecker wrote: > On Fri, 27 Feb 2004, Pearu Peterson wrote: > > On Fri, 27 Feb 2004, Arnd Baecker wrote: > > > > > there there seems to be something weird > > > going on when trying to access help in the following way > > > > > > >>> import scipy > > > >>> help("scipy.linalg") > > > Help on instance of _ModuleLoader in scipy: > > > > > > scipy.linalg = <module 'scipy.linalg' from '/opt/python/lib/pyt... > > > e-packages/scipy(Continue reading)/linalg/__init__.pyc' [imported]> > > > > > > Doing another > > > >>> help("scipy.linalg") > > > > > > one gets the expected help. > > But in a traditional Python prompt > > > > >>> import scipy > > >>> help("scipy.linalg") > > > > I get expected help. This is because ppimport redefines built-in help: > > > > >>> help > > Type help () for interactive help, or help (object) for help about object.