Decorator cllass hides docstring from doctest?

Michele Simionato michele.simionato at gmail.com
Thu Sep 21 09:37:35 EDT 2006


Berthold Höllmann wrote:
> Saving the following code to a file and running the code through
> python does not give the expected error. disableling the "@decor" line
> leads to the expected error message. Is this a bug or an overseen
> feature?

Others have already pointed out the mistake. I wrote a module to avoid
this kind of issues, so you
may want to check it out:

http://www.phyast.pitt.edu/~micheles/python/documentation.html

        Michele Simionato




More information about the Python-list mailing list