If you apply the patch from bug 545436 to python-mode.el, the attached code allows programmers to get help from pydoc about the current possibly dotted expression. This is just a quick-n-dirty hack, but seems at least marginally useful.
Logged In: YES user_id=12800 One problem with your patch is that symbol-near-point is a XEmacs-ism. I think we can fix that, and avoid the need to "regexp-unquote" the return value by just inlining what we need of symbol-near-point. I'll work out that patch and check it in if it works.
Logged In: YES user_id=44345 The patch works for me for methods but fails for symbols. I hadn't tried it for something like "sys.platform" before, so I'm pretty sure my original patch failed for that as well. When I ask for help on sys.platform it complains about "no help for 'linux2'". That makes sense, since it's asking for pydoc.help(sys.platform) Too bad Python doesn't have Lisp's quote feature! <0.5 wink> Ooh! Ooh! Pydoc *does* understand quoting! Try pydoc.help("sys.platform") pydoc.help("sys.exc_info") Looks like the help arg should always be quoted. A couple other suggestions: * How about binding py-help-at-point to [F1]? * How about adding the following two lines to the end of py-help-at-point: (set-buffer "*Python Output*") (help-mode) That puts point in the *P O* buffer and makes it easy to dump the help buffer when you're through with it (just press 'q'). S
Logged In: YES user_id=12800 I like the fix for sys.platform, and the binding to [f1]. I'm less sure about the (help-mode) bit because *Python Output* is overloaded for other things too. Oh well, I'll add them all and see if anybody complains. :)