why does "help(import)" not work?

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


On Fri, 6 Nov 2009, Brian Quinlan wrote:

> Hi Robert,
>
> help() is just a regular function that must be called with correct
> Python syntax and the import keyword is not allowed in an argument
> list.
>
> The correct syntax is:
> help('import')

  ah, ok, now it makes sense.  so python3 just lets me be sloppy about
it, as in:

  >>> help(print)

  got it.

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