ProgrammingPython

Python doctest

While perusing the Python tutorial, I came across a really nifty Python feature that I hadn't heard about before - namely the doctest module. It's quite ingenious. The doctest module provides a tool for scanning a module and...