|
5.2.4 What About Exceptions?No problem, as long as the only output generated by the example is the traceback itself. For example:
Note that only the exception type and value are compared (specifically, only the last line in the traceback). The various ``File'' lines in between can be left out (unless they add significantly to the documentation value of the example). See About this document... for information on suggesting changes. |