MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / pop

Method pop

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

Source from the content-addressed store, hash-verified

124 return iter(l)
125
126 def pop(self):
127 index = random.randint(0, len(self) - 1)
128 item = list(set.__iter__(self))[index]
129 self.remove(item)
130 return item
131
132 def union(self, other):
133 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