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

Method __init__

Lib/xml/dom/minidom.py:364–378  ·  view source on GitHub ↗
(self, qName, namespaceURI=EMPTY_NAMESPACE, localName=None,
                 prefix=None)

Source from the content-addressed store, hash-verified

362 _child_node_types = (Node.TEXT_NODE, Node.ENTITY_REFERENCE_NODE)
363
364 def __init__(self, qName, namespaceURI=EMPTY_NAMESPACE, localName=None,
365 prefix=None):
366 self.ownerElement = None
367 self.ownerDocument = None
368 self._name = qName
369 self.namespaceURI = namespaceURI
370 self._prefix = prefix
371 if localName is not None:
372 self._localName = localName
373 self.childNodes = NodeList()
374
375 # Add the single child node that represents the value of the attr
376 self.childNodes.append(Text())
377
378 # nodeValue and value are set elsewhere
379
380 def _get_localName(self):
381 try:

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 3

NodeListClass · 0.85
TextClass · 0.70
appendMethod · 0.45

Tested by

no test coverage detected