3 ms·
It remains a mystery to me that so few python developers know or use the "help" functionality that can be similar to this. Similarly, the apropos command liste
by taeric 3y ago
It remains a mystery to me that so few python developers know or use the "help" functionality that can be similar to this. Similarly, the apropos command listed is incredibly nice. Shame that similar functionality seems to have dropped off in most other environments.
- mjsir911 3y agopydoc has saved me many times! And doesn't require me dropping down into a shell too. help() is still invaluable, especially in debug shells when tab completion isn't helping me as much as I'de hoped.
- maleldil 3y agoDo you mean the `help()` function in the REPL? I agree that it's very useful, but I don't see it used well within text editors (e.g. neovim hover on pyright doesn't show the full help text). I'd also like to add that in ipython and jupyter, you can do `symbol?` and `symbol??` to get help and detailed help, respectively.
- taeric 3y agoI did indeed mean the help function. Is akin to the documentation command of lisp, if I recall. Though, I confess I never learned the keybindings to use it in a python file. (And I am sadly annoyed that the bindings I know in lisp open things up in a browser.)