1 Mar 2004 16:20
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/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.
(Continue reading)
RSS Feed