MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / pop

Method pop

lib/sqlalchemy/testing/util.py:85–89  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

83 return iter(l)
84
85 def pop(self):
86 index = random.randint(0, len(self) - 1)
87 item = list(set.__iter__(self))[index]
88 self.remove(item)
89 return item
90
91 def union(self, other):
92 return RandomSet(set.union(self, other))

Callers 2

resolve_lambdaFunction · 0.45
count_cache_key_tuplesFunction · 0.45

Calls 2

__iter__Method · 0.45
removeMethod · 0.45

Tested by

no test coverage detected