[docs] Bug in doctest documentation

Sandro Tosi sandro.tosi at gmail.com
Sun Aug 12 09:55:39 CEST 2012


Hello Scott,

On Sat, Aug 4, 2012 at 1:18 AM, Scott Mancuso <mathprodigy20 at gmail.com> wrote:
> This is an issue with the documentation of directives found at
> http://docs.python.org/library/doctest.html#option-flags-and-directives
> Quite a few examples of how to use the directives are included.
> Unfortunately, the actually directives aren't visible in the code examples
> given. For example, this:
>
>    >>> print range(20) #doctest: +NORMALIZE_WHITESPACE
>    [0,   1,  2,  3,  4,  5,  6,  7,  8,  9,
>    10,  11, 12, 13, 14, 15, 16, 17, 18, 19]
>
> is rendered as
>
>>>> print range(20)
> [0,   1,  2,  3,  4,  5,  6,  7,  8,  9,
> 10,  11, 12, 13, 14, 15, 16, 17, 18, 19]

Yes, this is a known problem of the tools we're using to highlight the
code in the Python documentation, and we're already working on it to
fix it asap - thanks for your report.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


More information about the docs mailing list