why does "help(import)" not work?

Robert P. J. Day rpjday at crashcourse.ca
Fri Nov 6 04:56:34 EST 2009


  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
>>>

  on the other hand, i can certainly go into "help()" and type
"import" to get that help.  it seems counter-intuitive to have the
first variation fail but the second succeed.

  what is the rule for this in python3?

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