MCPcopy Index your code
hub / github.com/rocky/python-uncompyle6 / Set

Class Set

test/ok_lib2.7/compiler/misc.py:11–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9 return elts
10
11class Set:
12 def __init__(self):
13 self.elts = {}
14 def __len__(self):
15 return len(self.elts)
16 def __contains__(self, elt):
17 return elt in self.elts
18 def add(self, elt):
19 self.elts[elt] = elt
20 def elements(self):
21 return self.elts.keys()
22 def has_elt(self, elt):
23 return elt in self.elts
24 def remove(self, elt):
25 del self.elts[elt]
26 def copy(self):
27 c = Set()
28 c.elts.update(self.elts)
29 return c
30
31class Stack:
32 def __init__(self):

Callers 1

copyMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected