Example #1
0
 def __init__(self, space, strategy, dictimplementation):
     IteratorImplementation.__init__(self, space, strategy, dictimplementation)
     keys, values_w = strategy.unerase(self.dictimplementation.dstorage)
     self.iterator = iter(range(len(keys)))
     # XXX this potentially leaks
     self.keys = keys
     self.values_w = values_w
Example #2
0
 def __init__(self, space, strategy, dictimplementation):
     IteratorImplementation.__init__(self, space, strategy,
                                     dictimplementation)
     keys, values_w = strategy.unerase(self.dictimplementation.dstorage)
     self.iterator = iter(range(len(keys)))
     # XXX this potentially leaks
     self.keys = keys
     self.values_w = values_w
Example #3
0
 def __init__(self, space, strategy, dictimplementation):
     IteratorImplementation.__init__(self, space, dictimplementation)
     dict_w = strategy.unerase(dictimplementation.dstorage)
     self.iterator = dict_w.iteritems()
Example #4
0
 def __init__(self, space, strategy, dictimplementation):
     IteratorImplementation.__init__(
         self, space, strategy, dictimplementation)
     w_obj = strategy.unerase(dictimplementation.dstorage)
     self.w_obj = w_obj
     self.orig_map = self.curr_map = w_obj._get_mapdict_map()
Example #5
0
 def __init__(self, space, strategy, dictimplementation):
     IteratorImplementation.__init__(self, space, dictimplementation)
     w_type = strategy.unerase(dictimplementation.dstorage)
     self.iterator = w_type.dict_w.iteritems()
Example #6
0
 def __init__(self, space, dictimplementation):
     IteratorImplementation.__init__(self, space, dictimplementation)
     self.iterator = dictimplementation.structure.keys.iteritems()
Example #7
0
 def __init__(self, space, dictimplementation):
     IteratorImplementation.__init__(self, space, dictimplementation)
     self.values = dictimplementation.entries
Example #8
0
 def __init__(self, space, dictimplementation):
     IteratorImplementation.__init__(self, space, dictimplementation)
     self.index = 0
     self.node = None
Example #9
0
 def __init__(self, space, dictimplementation):
     IteratorImplementation.__init__(self, space, dictimplementation)
     self.iterator = dictimplementation.content.iteritems()
Example #10
0
 def __init__(self, space, dictimplementation):
     IteratorImplementation.__init__(self, space, dictimplementation)
     self.iterator = dictimplementation.w_type.dict_w.iteritems()
Example #11
0
 def __init__(self, space, strategy, dictimplementation):
     IteratorImplementation.__init__(self, space, strategy,
                                     dictimplementation)
     w_obj = strategy.unerase(dictimplementation.dstorage)
     self.w_obj = w_obj
     self.orig_map = self.curr_map = w_obj._get_mapdict_map()
Example #12
0
 def __init__(self, space, dictimpl, itemlist):
     IteratorImplementation.__init__(self, space, dictimpl)
     self.itemlist = itemlist
Example #13
0
 def __init__(self, space, dictimplementation):
     IteratorImplementation.__init__(self, space, dictimplementation)
     self.iterator = dictimplementation.content.iteritems()
Example #14
0
 def __init__(self, space, dictimpl, itemlist):
     IteratorImplementation.__init__(self, space, dictimpl)
     self.itemlist = itemlist