PyDocs

Nav

Development Tools

DocTestParser.get_examples

  • DocTestParser.get_examples(string, name='<string>')
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.
0 Examples
No examples for doctest/DocTestParser.get_examples.
See Also
No see-alsos for doctest/DocTestParser.get_examples
0 Notes
No notes for DocTestParser.get_examples