StringLineByLineReader

Represents a string from which we’ll stream blocks of data by finding tags and parsing what’s between them

 

__init__(self, string, ignore_comments=False, max_nesting_depth=-1): 

LLM Docstring

Create a text-mode line parser over an in-memory string.

  • string: object

    the source string or byte sequence wrapped by the reader

  • ignore_comments: object

    whether comment-tagged lines are discarded

  • max_nesting_depth: object

    the maximum recursive block depth, with a negative value meaning unlimited


Feedback

Examples

Templates

Documentation