5 ms·
Docstrings should already be easy to detect by editors, so it would be trivial to add a show/hide functionality. Incidentally, one could also use Sphinx to crea
by mekoka 15y ago
Docstrings should already be easy to detect by editors, so it would be trivial to add a show/hide functionality. Incidentally, one could also use Sphinx to create a plugin for that.
- odiroot 15y agoI just noticed Sublime Text 2 has an ability to fold multiline docstrings. If there only was a way to do this automatically.
- espeed 15y agoBut not all editors have this, nor is it widely used in editors like Emacs. And GitHub doesn't have it so it can make it harder to get a big-picture view and see the structure of a module when evaluating different libraries online.