PyDocs

Nav

Development Tools

DocTestParser

doctest

class (source)
A class used to parse strings containing doctest examples.
Members of DocTestParser

g

get_doctest
Extract all doctest examples from the given string, and collect them into a `DocTest` object.
get_examples
Extract all doctest examples from the given string, and return them as a list of `Example` objects.

p

parse
Divide the given string into examples and intervening text, and return them as a list of alternating Examples and strings.
0 Examples
No examples for doctest/DocTestParser.
See Also
No see-alsos for doctest/DocTestParser
0 Notes
No notes for DocTestParser