MCPcopy Index your code
hub / github.com/python/cpython / Builder

Class Builder

Lib/test/test_xml_etree.py:633–639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

631 with open(SIMPLE_XMLFILE) as f:
632 data = f.read()
633 class Builder(list):
634 def start(self, tag, attrib):
635 self.append(("start", tag))
636 def end(self, tag):
637 self.append(("end", tag))
638 def data(self, text):
639 pass
640 builder = Builder()
641 parser = ET.XMLParser(target=builder)
642 parser.feed(data)

Callers 2

test_custom_builderMethod · 0.70

Calls

no outgoing calls

Tested by 2

test_custom_builderMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…