[Python-ideas] Fwd: doctest

Ben Finney ben+python at benfinney.id.au
Mon Feb 27 22:35:37 CET 2012

Mark Janssen <dreamingforward at gmail.com>

> The key difference, to me, is in that doctest promotes tests being
> written in order to have the *additional functionality* of
> documentation.

I think that doctest promotes docstrings being written with the
additional functionality of tests. To that extent, it is very good.

 \          “The fact that I have no remedy for all the sorrows of the |
  `\     world is no reason for my accepting yours. It simply supports |
_o__)  the strong probability that yours is a fake.” —Henry L. Mencken |
Ben Finney

More information about the Python-ideas mailing list