Bug in doctest documentation
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]
Scott Mancuso
Hello Scott, On Sat, Aug 4, 2012 at 1:18 AM, Scott Mancuso <mathprodigy20@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
participants (2)
-
Sandro Tosi
-
Scott Mancuso