MCPcopy Index your code
hub / github.com/RustPython/RustPython / pi

Method pi

Lib/xml/etree/ElementTree.py:1499–1506  ·  view source on GitHub ↗

Create a processing instruction using the pi_factory. *target* is the target name of the processing instruction. *text* is the data of the processing instruction, or ''.

(self, target, text=None)

Source from the content-addressed store, hash-verified

1497 self._comment_factory, self.insert_comments, text)
1498
1499 def pi(self, target, text=None):
1500 """Create a processing instruction using the pi_factory.
1501
1502 *target* is the target name of the processing instruction.
1503 *text* is the data of the processing instruction, or ''.
1504 """
1505 return self._handle_single(
1506 self._pi_factory, self.insert_pis, target, text)
1507
1508 def _handle_single(self, factory, insert, *args):
1509 elem = factory(*args)

Callers 2

test_treebuilder_piMethod · 0.95
handlerMethod · 0.45

Calls 1

_handle_singleMethod · 0.95

Tested by 1

test_treebuilder_piMethod · 0.76