A class used to parse strings containing doctest examples.
There are no base classes.
There are no implemented interfaces.
There are no attributes in this class.
get_doctest(string, globs, name, filename, lineno, optionflags=0)
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='<string>', optionflags=0)
Extract all doctest examples from the given string, and return them as a list of Example objects. Line numbers are 0-based, because it's most common in doctests that nothing interesting appears on the same line as opening triple-quote, and so the first interesting line is called "line 1" then.
The optional argument name is a name identifying this string, and is only used for error messages.
parse(string, name='<string>', optionflags=0)
Divide the given string into examples and intervening text, and return them as a list of alternating Examples and strings. Line numbers for the Examples are 0-based. The optional argument name is a name identifying this string, and is only used for error messages.
There are no known subclasses.