[Python-ideas] Syntax for dedented strings
Dag Odenhall
dag.odenhall at gmail.com
Fri Aug 19 14:55:09 CEST 2011
On Tue, 2011-08-16 at 23:43 +0100, Michael Foord wrote:
> The place I'm concerned about is the interactive interpreter, virtually the
> only place I look at docstrings that isn't directly in the source code (or
> pre-processed by a doc tool - but I don't care about that).
Why don't you use bpython? It shows the docstring automatically as
you're typing a class, without all the methods, and properly formatted.
Also if you're working with docstrings yourself there's inspect.getdoc
which handles whitespace/indentation.
(But I still consider your proposal useful.)
More information about the Python-ideas
mailing list