[Python-ideas] Syntax for dedented strings
aquavitae69 at gmail.com
Fri Aug 19 16:32:52 CEST 2011
+1 for strings in unit tests, but not so useful for docstrings. But the
proposal was as a new string type, not necessarily docstrings. But maybe a
string method would be better:
On Aug 19, 2011 2:55 PM, "Dag Odenhall" <dag.odenhall at gmail.com> wrote:
> On Tue, 2011-08-16 at 23:43 +0100, Michael Foord wrote:
> > The place I'm concerned about is the interactive interpreter, virtually
> > only place I look at docstrings that isn't directly in the source code
> > 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.)
> Python-ideas mailing list
> Python-ideas at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas