MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / get_examples

Method get_examples

Lib/doctest.py:648–660  ·  view source on GitHub ↗

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 int

(self, string, name='<string>')

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

get_doctestMethod · 0.95

Calls 1

parseMethod · 0.95

Tested by

no test coverage detected