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

Method comment

Lib/xml/etree/ElementTree.py:1495–1501  ·  view source on GitHub ↗

Create a comment using the comment_factory. *text* is the text of the comment.

(self, text)

Source from the content-addressed store, hash-verified

1493 return self._last
1494
1495 def comment(self, text):
1496 """Create a comment using the comment_factory.
1497
1498 *text* is the text of the comment.
1499 """
1500 return self._handle_single(
1501 self._comment_factory, self.insert_comments, text)
1502
1503 def pi(self, target, text=None):
1504 """Create a processing instruction using the pi_factory.

Callers 2

handlerMethod · 0.45

Calls 1

_handle_singleMethod · 0.95

Tested by 1