Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ createComment
Method
createComment
Lib/xml/dom/minidom.py:1710–1713 ·
view source on GitHub ↗
(self, data)
Source
from the content-addressed store, hash-verified
1708
return
c
1709
1710
def
createComment(self, data):
1711
c = Comment(data)
1712
c.ownerDocument = self
1713
return
c
1714
1715
def
createProcessingInstruction(self, target, data):
1716
p = ProcessingInstruction(target, data)
Callers
9
testAppendChild
Method · 0.80
testNonZero
Method · 0.80
testRenameOther
Method · 0.80
testWholeText
Method · 0.80
testSerializeCommentNodeWithDoubleHyphen
Method · 0.80
_clone_node
Function · 0.80
comment
Method · 0.80
buildDocument
Method · 0.80
comment_handler
Method · 0.80
Calls
1
Comment
Class · 0.70
Tested by
5
testAppendChild
Method · 0.64
testNonZero
Method · 0.64
testRenameOther
Method · 0.64
testWholeText
Method · 0.64
testSerializeCommentNodeWithDoubleHyphen
Method · 0.64