why does "help(import)" not work?

Robert P. J. Day rpjday at crashcourse.ca
Fri Nov 6 05:28:19 EST 2009


On Fri, 6 Nov 2009, Chris Rebert wrote:

> On Fri, Nov 6, 2009 at 1:56 AM, Robert P. J. Day <rpjday at crashcourse.ca> wrote:
> >  i'm sure there's a painfully obvious answer to this, but is there a
> > reason i can't do:
> >
> >>>> help(import)
> >  File "<stdin>", line 1
> >    help(import)
> >              ^
> > SyntaxError: invalid syntax
> >>>>

> It would take a hideous kludge to make help(import) work.
>
> Cheers,
> Chris

  um ... ok, i'll take your word for it, but is there at least a
generalizable pattern for what is directly help()able and what isn't?

rday
--

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

            Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday
========================================================================


More information about the Python-list mailing list