doctest, unittest, or if __name__='__main__'

Christoph Zwerschke cito at online.de
Tue Mar 21 18:03:22 EST 2006


john_sips_tea at yahoo.com wrote:
> By that, do you mean you can write your tests and your
> docstrings in one shot with doctest?

Right. The tests serve also as usage examples.



More information about the Python-list mailing list