why does "help(import)" not work?
Simon Brunning
simon at brunningonline.net
Fri Nov 6 05:45:38 EST 2009
2009/11/6 Robert P. J. Day <rpjday at crashcourse.ca>:
> 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?
If it's an object (or to be precise, a name bound to an object), it's
helpable. If it's a keyword, it's not - and in fact can't be, since as
you've found, it's a syntax error - so you fall back to passing a
string.
--
Cheers,
Simon B.
More information about the Python-list
mailing list