why does "help(import)" not work?
Paul Rudin
paul.nospam at rudin.co.uk
Fri Nov 6 05:49:17 EST 2009
"Robert P. J. Day" <rpjday at crashcourse.ca> writes:
> 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.
In python 3 print is a function.
More information about the Python-list
mailing list