Re: why does "help(import)" not work?

2009-11-06 Thread Brian Quinlan
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

Re: why does "help(import)" not work?

2009-11-06 Thread Chris Rebert
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

Re: why does "help(import)" not work?

2009-11-06 Thread Simon Brunning
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

why does "help(import)" not work?

2009-11-06 Thread 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 >>> on the other hand, i can certainly go into "help()" and type "import" to get that help. it seems counter