This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients belopolsky, docs@python, eric.araujo, georg.brandl, lukasz.langa, rhettinger, terry.reedy
Date 2011-03-24.19:15:36
SpamBayes Score 3.3757893e-05
Marked as misclassified No
Message-id <1300994137.07.0.793699407423.issue10225@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2011-03-24 19:15:37rhettingersetrecipients: + rhettinger, georg.brandl, terry.reedy, belopolsky, eric.araujo, docs@python, lukasz.langa
2011-03-24 19:15:37rhettingersetmessageid: <1300994137.07.0.793699407423.issue10225@psf.upfronthosting.co.za>
2011-03-24 19:15:36rhettingerlinkissue10225 messages
2011-03-24 19:15:36rhettingercreate