Improve debugging by propagating errors
Improve debugging by propagating errors

pydoc.Doc.document ignores exceptions in the documenter and calls
docother() as fallback. This makes debugging harder, so try to process
modules, classes and routines before anything else such that exceptions
get propagated.

Lekensteyn/pystubgen