MCPcopy Create free account
hub / github.com/rthalley/dnspython / pop

Method pop

dns/set.py:68–71  ·  view source on GitHub ↗

Remove an arbitrary item from the set.

(self)

Source from the content-addressed store, hash-verified

66 self.items.pop(item, None)
67
68 def pop(self):
69 """Remove an arbitrary item from the set."""
70 (k, _) = self.items.popitem()
71 return k
72
73 def _clone(self) -> "Set":
74 """Make a (shallow) copy of the set.

Callers 15

discardMethod · 0.80
__delitem__Method · 0.80
resolve_nameMethod · 0.80
_fmt_kwargsMethod · 0.80
next_requestMethod · 0.80
next_nameserverMethod · 0.80
resolve_nameMethod · 0.80
try_left_stealMethod · 0.80
try_right_stealMethod · 0.80
mergeMethod · 0.80
deleteMethod · 0.80
prevMethod · 0.80

Calls

no outgoing calls

Tested by 2

testPopMethod · 0.64