"Carl M. Johnson" cmjohnson.mailinglist@gmail.com writes:
Can the parser be changed to do automagic joining on that the same way that it auto joins ("a"
"b")?
There's no need to change the parser, when what you suggest works fine in existing Python *and* is easier to maintain without the trailing backslashes:
def f(x): ("Am I a docstring\n" "even though I start in pieces?\n" "Oh, x is a dummy param\n") pass print(f.__doc__)
But that's still crap. I think the existing situation works too: the existing docstring processors already know to handle docstrings according to URL:http://www.python.org/dev/peps/pep-0257/#id20.
Introducing more workarounds for multi-line strings, when the existing tools appear to work fine, gets a -0.5 from me.