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

Method get

pattern/web/soup/BeautifulSoup.py:590–594  ·  view source on GitHub ↗

Returns the value of the 'key' attribute for the tag, or the value given for 'default' if it doesn't have that attribute.

(self, key, default=None)

Source from the content-addressed store, hash-verified

588 text = property(getText)
589
590 def get(self, key, default=None):
591 """Returns the value of the 'key' attribute for the tag, or
592 the value given for 'default' if it doesn't have that
593 attribute."""
594 return self._getAttrMap().get(key, default)
595
596 def clear(self):
597 """Extract all children."""

Callers 6

searchTagMethod · 0.45
_smartPopMethod · 0.45
handle_entityrefMethod · 0.45
_subMSCharMethod · 0.45
find_codecMethod · 0.45

Calls 1

_getAttrMapMethod · 0.95

Tested by 1