MCPcopy Index your code
hub / github.com/apache/cassandra-python-driver / pop

Method pop

cassandra/util.py:304–314  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

302 return self.__class__(self)
303
304 def pop(self):
305 if self._pending_removals:
306 self._commit_removals()
307 while True:
308 try:
309 itemref = self.data.pop()
310 except KeyError:
311 raise KeyError('pop from empty WeakSet')
312 item = itemref()
313 if item is not None:
314 return item
315
316 def remove(self, item):
317 if self._pending_removals:

Callers 15

cmd_line_args_to_dictFunction · 0.45
test_null_typesMethod · 0.45
__str__Method · 0.45
get_node_idsMethod · 0.45
test_io_successMethod · 0.45

Calls 1

_commit_removalsMethod · 0.95

Tested by 13

test_null_typesMethod · 0.36
__str__Method · 0.36
test_io_successMethod · 0.36
test_popMethod · 0.36