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

Method processingInstruction

Lib/xml/dom/pulldom.py:140–147  ·  view source on GitHub ↗
(self, target, data)

Source from the content-addressed store, hash-verified

138 self.pending_events.append(event)
139
140 def processingInstruction(self, target, data):
141 if self.document:
142 node = self.document.createProcessingInstruction(target, data)
143 self.lastEvent[1] = [(PROCESSING_INSTRUCTION, node), None]
144 self.lastEvent = self.lastEvent[1]
145 else:
146 event = [(PROCESSING_INSTRUCTION, target, data), None]
147 self.pending_events.append(event)
148
149 def ignorableWhitespace(self, chars):
150 node = self.document.createTextNode(chars)

Callers 3

parseMethod · 0.45
parseMethod · 0.45
processingInstructionMethod · 0.45

Calls 2

appendMethod · 0.45

Tested by 2

parseMethod · 0.36
parseMethod · 0.36