class doctest.DocTestParser
A processing class used to extract interactive examples from a string, and use them to create a DocTest object.
DocTestParser defines the following methods:
get_doctest(string, globs, name, filename, lineno)
Extract all doctest examples from the given string, and collect them into a DocTest object. globs, name, filename, and lineno are attributes for the new DocTest object. See the documentation for DocTest for more information.
get_examples(string, name=''