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

Method has_key

pattern/web/soup/BeautifulSoup.py:607–608  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

605 raise ValueError("Tag.index: element not in tag")
606
607 def has_key(self, key):
608 return self._getAttrMap().has_key(key)
609
610 def __getitem__(self, key):
611 """tag[key] returns the value of the 'key' attribute for the tag,

Callers 7

__delitem__Method · 0.45
_matchesMethod · 0.45
isSelfClosingTagMethod · 0.45
_smartPopMethod · 0.45
__init__Method · 0.45
popTagMethod · 0.45
testHasKeyMethod · 0.45

Calls 1

_getAttrMapMethod · 0.95

Tested by 1

testHasKeyMethod · 0.36