why does "help(import)" not work?

Chris Rebert clp2 at rebertia.com
Fri Nov 6 13:04:21 EST 2009


On Fri, Nov 6, 2009 at 7:15 AM, Bruno Desthuilliers
<bruno.42.desthuilliers at websiteburo.invalid> wrote:
> Chris Rebert a écrit :
>> On Fri, Nov 6, 2009 at 2:28 AM, Robert P. J. Day <rpjday at crashcourse.ca>
>> wrote:
>>>  um ... ok, i'll take your word for it, but is there at least a
>>> generalizable pattern for what is directly help()able and what isn't?
>>
>> Language keywords aren't help()-able:
>> http://docs.python.org/reference/lexical_analysis.html#keywords
>> Neither are punctuation/operators (see other sections on same webpage).
>
> Ever tried help("import") or help("if") or help("+") ?

help()-able in this context meaning you can drop the quotes and not
get a syntax error.

Cheers,
Chris
--
http://blog.rebertia.com



More information about the Python-list mailing list