A class with built-in doctest feature ?

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Thu Feb 2 15:26:09 EST 2006


The idea looks interesting, but you can also design a couple of
functions that scan the docstrings of a given class and its methods to
produce what you need:

doctestAll(C)
toHtml(C)

This is probably simpler and gives similar results.

Bye,
bearophile




More information about the Python-list mailing list