[docs] [issue10225] Fix doctest runable examples in python manual

Raymond Hettinger report at bugs.python.org
Thu Mar 24 20:15:37 CET 2011

Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

> I am curious, what was the reason to add 
> trailing whitespace in the named tuple template?

To make it hard to doctest ;-)

I had a thought that it made the template more readable, but the better solution was to just use real newlines instead of '\n'.   The template has been considerably beautified for python 3.3, but I don't want to go back in time and muck with stable code just to accommodate adding a doctest in old docs.


Python tracker <report at bugs.python.org>

More information about the docs mailing list