doctest, unittest, or if __name__='__main__'

Christoph Zwerschke cito at
Wed Mar 22 00:03:22 CET 2006

john_sips_tea at 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