doctest.DocTestParser.parse()

parse(string, name='')

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.

doc_python
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.