Doctest documentation?

Steven D'Aprano steve+comp.lang.python at pearwood.info
Sun May 20 11:55:52 EDT 2012


Is this a bug in the doctest documentation, or is my browser broken?

On this page:

http://docs.python.org/library/doctest.html#option-flags-and-directives

scroll down to the examples showing the doctest directives, e.g:

    [quote]
    For example, this test passes:

    >>> print range(20) 
    [0,   1,  2,  3,  4,  5,  6,  7,  8,  9,
    10,  11, 12, 13, 14, 15, 16, 17, 18, 19]

Likewise for the Python 3 version:

http://docs.python.org/py3k/library/doctest.html

Seems to me that the actual directives are missing. I can't see them in 
the raw HTML either. Can anyone else confirm that they are missing?


-- 
Steven



More information about the Python-list mailing list