sympy/sympy — pull request #1114 by snktagarwal (2012-03-12 22:16:39+00:00)
Title: Rewrite coverage doctest

Current implementation of coverage_doctest.py includes patchy parsing, and is prone to small edge cases (like having a "def" inside a comment/doc etc). Besides there is an outstanding issue by asmeurer at: http://code.google.com/p/sympy/issues/detail?id=2970.

The current implementation takes care of the following:

* Does not depend on parsing, just imports the module in question and uses __import__, inspect, getattr etc to figure out what methods/functions/classes (top level) lie within.
* Uses __doc__ to access a member's doc
* Fixes the issue of handling class documentation