MCPcopy Create free account
hub / github.com/clips/pattern / index

Method index

pattern/web/soup/BeautifulSoup.py:601–605  ·  view source on GitHub ↗
(self, element)

Source from the content-addressed store, hash-verified

599 child.extract()
600
601 def index(self, element):
602 for i, child in enumerate(self.contents):
603 if child is element:
604 return i
605 raise ValueError("Tag.index: element not in tag")
606
607 def has_key(self, key):
608 return self._getAttrMap().has_key(key)

Callers 9

do_keywordMethod · 0.45
get_inline_dataMethod · 0.45
_parse_date_rfc822Function · 0.45
_parse_date_asctimeFunction · 0.45
replaceWithMethod · 0.45
replaceWithChildrenMethod · 0.45
extractMethod · 0.45
insertMethod · 0.45
testFindByIndexMethod · 0.45

Calls

no outgoing calls

Tested by 1

testFindByIndexMethod · 0.36