MCPcopy Index your code
hub / github.com/clips/pattern / clear

Method clear

pattern/web/soup/BeautifulSoup.py:596–599  ·  view source on GitHub ↗

Extract all children.

(self)

Source from the content-addressed store, hash-verified

594 return self._getAttrMap().get(key, default)
595
596 def clear(self):
597 """Extract all children."""
598 for child in self.contents[:]:
599 child.extract()
600
601 def index(self, element):
602 for i, child in enumerate(self.contents):

Callers 2

setStringMethod · 0.95
testClearMethod · 0.45

Calls 1

extractMethod · 0.80

Tested by 1

testClearMethod · 0.36