Fwd: Implicit String Concatenation

On 4/16/07, Jim Jewett <jimjjewett@gmail.com> wrote:
If docstrings is the problem you can always use a function decorator for it: def dedentdoc(func): func.__doc__ = dedent(func.__doc__) return func @dedentdoc def f(...): """ Long and indented docstring. extra indented unindented, phew""" pass /Tobias -jJ

"Tobias Ivarsson" <thobes@gmail.com> wrote:
If docstrings is the problem you can always use a function decorator for it:
That wasn't the question. Greg was asking "when is dedenting a docstring *not* the right solution?" We all understand and know that any string can be manually dedented, the question is whether automatic dedenting of all triple-quoted strings should be done. - Josiah

"Tobias Ivarsson" <thobes@gmail.com> wrote:
If docstrings is the problem you can always use a function decorator for it:
That wasn't the question. Greg was asking "when is dedenting a docstring *not* the right solution?" We all understand and know that any string can be manually dedented, the question is whether automatic dedenting of all triple-quoted strings should be done. - Josiah
participants (2)
-
Josiah Carlson
-
Tobias Ivarsson