MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __iter__

Method __iter__

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

Source from the content-addressed store, hash-verified

78
79class RandomSet(set):
80 def __iter__(self):
81 l = list(set.__iter__(self))
82 random.shuffle(l)
83 return iter(l)
84
85 def pop(self):
86 index = random.randint(0, len(self) - 1)

Callers 1

popMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected