Commits

Alex Gaynor committed 781d223

Replaced another use of a dict with bogus values with a set

Comments (0)

Files changed (1)

rpython/rtyper/annlowlevel.py

         self.rtyper = rtyper
         self.policy = MixLevelAnnotatorPolicy(self)
         self.pending = []     # list of (ll_function, graph, args_s, s_result)
-        self.delayedreprs = {}
+        self.delayedreprs = set()
         self.delayedconsts = []
         self.delayedfuncs = []
         self.newgraphs = set()
         else:
             delayed = r.set_setup_maybe_delayed()
         if delayed:
-            self.delayedreprs[r] = True
+            self.delayedreprs.add(r)
         return r
 
     def s_r_instanceof(self, cls, can_be_None=True, check_never_seen=True):