why does "help(import)" not work?

Simon Brunning simon at brunningonline.net
Fri Nov 6 05:10:37 EST 2009


2009/11/6 Robert P. J. Day <rpjday at crashcourse.ca>:
>
>  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

import is a keyword, not an object.

-- 
Cheers,
Simon B.



More information about the Python-list mailing list