class documentation

Undocumented

Method __init__ Undocumented
Method append_node Undocumented
Method decode_raw_stream given string/unicode or bytes/string, determine encoding from magic encoding comment, return body as unicode or raw if decode_raw=False
Method match compile the given regexp, cache the reg, and call match_reg().
Method match_comment matches the multiline version of a comment
Method match_control_line Undocumented
Method match_end Undocumented
Method match_expression Undocumented
Method match_python_block Undocumented
Method match_reg match the given regular expression object to the current text position.
Method match_tag_end Undocumented
Method match_tag_start Undocumented
Method match_text Undocumented
Method parse Undocumented
Method parse_until_text Undocumented
Instance Variable control_line Undocumented
Instance Variable encoding Undocumented
Instance Variable filename Undocumented
Instance Variable keyword Undocumented
Instance Variable lineno Undocumented
Instance Variable match_position Undocumented
Instance Variable matched_charpos Undocumented
Instance Variable matched_lineno Undocumented
Instance Variable preprocessor Undocumented
Instance Variable tag Undocumented
Instance Variable template Undocumented
Instance Variable ternary_stack Undocumented
Instance Variable text Undocumented
Instance Variable textlength Undocumented
Property exception_kwargs Undocumented
Class Variable _coding_re Undocumented
def __init__(self, text, filename=None, input_encoding=None, preprocessor=None): (source)

Undocumented

def append_node(self, nodecls, *args, **kwargs): (source)

Undocumented

def decode_raw_stream(self, text, decode_raw, known_encoding, filename): (source)

given string/unicode or bytes/string, determine encoding from magic encoding comment, return body as unicode or raw if decode_raw=False

def match(self, regexp, flags=None): (source)

compile the given regexp, cache the reg, and call match_reg().

def match_comment(self): (source)

matches the multiline version of a comment

def match_control_line(self): (source)

Undocumented

def match_end(self): (source)

Undocumented

def match_expression(self): (source)

Undocumented

def match_python_block(self): (source)

Undocumented

def match_reg(self, reg): (source)

match the given regular expression object to the current text position. if a match occurs, update the current text and line position.

def match_tag_end(self): (source)

Undocumented

def match_tag_start(self): (source)

Undocumented

def match_text(self): (source)

Undocumented

def parse(self): (source)

Undocumented

def parse_until_text(self, watch_nesting, *text): (source)

Undocumented

control_line: list = (source)

Undocumented

encoding = (source)

Undocumented

filename = (source)

Undocumented

Undocumented

Undocumented

match_position = (source)

Undocumented

matched_charpos = (source)

Undocumented

matched_lineno = (source)

Undocumented

preprocessor: list = (source)

Undocumented

Undocumented

template = (source)

Undocumented

ternary_stack: list = (source)

Undocumented

Undocumented

textlength = (source)

Undocumented

@property
exception_kwargs = (source)

Undocumented

_coding_re = (source)

Undocumented