[issue7583] Improve explanation of tab expansion in doctests

Rodrigo Bernardo Pimentel report at bugs.python.org
Wed May 5 18:43:55 CEST 2010


Rodrigo Bernardo Pimentel <rbp at isnomore.net> added the comment:

I've just been bitten by this, and I agree the language in the docs is very inappropriate (made me angry for a minute :)). 

One suggestion: "While not everyone might believe tabs should mean that, doctests are primarily aimed at documentation, and, since it's very hard to get tabs to look consistent, keeping hard tabs would be potentially confusing. If you absolutely need to test for the presence of tabs at the output, you can capture it and use string comparison, or write your own DocTestParser class."

----------
nosy: +rbp

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7583>
_______________________________________


More information about the Python-bugs-list mailing list