Out-denting multiline comments
Delaney, Timothy
tdelaney at avaya.com
Thu Aug 8 19:24:59 EDT 2002
> From: Max M [mailto:maxm at mxm.dk]
>
> Is there a standard idiom for un-tabbing, de-denting, un-denting (or
> whatever it's called) a blok of code so that::
>
> """
> regards
> Max M
> """
>
> becomes:
>
> """
> regards
> Max M
> """
inspect.getdoc()
There's been talk of exposing this functionality outside of this one domain
though (since it is useful for things other than docstrings).
Tim Delaney
More information about the Python-list
mailing list