Doctests are extremely unforgiving. Suppose a user has to write code
to satisfy the following doctest written by a tutorial writer
>>> double(1)
2
where, there's extra blank space i.e., rewriting the code using "_" to
indicate white spaces, we'd have
>>>_double(1)
2____
... it would be essentially impossible for the end user to realise what is
wrong. To prevent something like this from occurring, lines of code should
be trimmed from any extra spaces.
Original issue reported on code.google.com by andre.ro...@gmail.com on 6 Oct 2008 at 9:26
Original issue reported on code.google.com by
andre.ro...@gmail.com
on 6 Oct 2008 at 9:26