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

Method clear

code/BeautifulSoup.py:582–585  ·  view source on GitHub ↗

Extract all children.

(self)

Source from the content-addressed store, hash-verified

580 return self._getAttrMap().get(key, default)
581
582 def clear(self):
583 """Extract all children."""
584 for child in self.contents[:]:
585 child.extract()
586
587 def index(self, element):
588 for i, child in enumerate(self.contents):

Callers 1

setStringMethod · 0.95

Calls 1

extractMethod · 0.45

Tested by

no test coverage detected