MCPcopy Index your code
hub / github.com/csev/py4e / index

Method index

code/BeautifulSoup.py:587–591  ·  view source on GitHub ↗
(self, element)

Source from the content-addressed store, hash-verified

585 child.extract()
586
587 def index(self, element):
588 for i, child in enumerate(self.contents):
589 if child is element:
590 return i
591 raise ValueError("Tag.index: element not in tag")
592
593 def has_key(self, key):
594 return self._getAttrMap().has_key(key)

Callers 4

replaceWithMethod · 0.45
replaceWithChildrenMethod · 0.45
extractMethod · 0.45
insertMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected