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')
Cheers,
Brian
On 6 Nov 2009, at 20:56, Robert P. J. Day wrote:
i'm sure there's a painfully obviou
On Fri, Nov 6, 2009 at 1:56 AM, Robert P. J. Day wrote:
> i'm sure there's a painfully obvious answer to this, but is there a
> reason i can't do:
>
help(import)
> File "", line 1
> help(import)
> ^
> SyntaxError: invalid syntax
>
> on the other hand, i can certainly g
2009/11/6 Robert P. J. Day :
>
> i'm sure there's a painfully obvious answer to this, but is there a
> reason i can't do:
>
help(import)
> File "", line 1
> help(import)
> ^
> SyntaxError: invalid syntax
import is a keyword, not an object.
--
Cheers,
Simon B.
--
http://ma
i'm sure there's a painfully obvious answer to this, but is there a
reason i can't do:
>>> help(import)
File "", 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