Staging: this is not the live site, pydocs.org.
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.