Exemple #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
Exemple #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
Exemple #3
0
 def __init__(self, space, strategy, dictimplementation):
     IteratorImplementation.__init__(self, space, dictimplementation)
     dict_w = strategy.unerase(dictimplementation.dstorage)
     self.iterator = dict_w.iteritems()
Exemple #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()
Exemple #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()
Exemple #6
0
 def __init__(self, space, dictimplementation):
     IteratorImplementation.__init__(self, space, dictimplementation)
     self.iterator = dictimplementation.structure.keys.iteritems()
Exemple #7
0
 def __init__(self, space, dictimplementation):
     IteratorImplementation.__init__(self, space, dictimplementation)
     self.values = dictimplementation.entries
Exemple #8
0
 def __init__(self, space, dictimplementation):
     IteratorImplementation.__init__(self, space, dictimplementation)
     self.index = 0
     self.node = None
Exemple #9
0
 def __init__(self, space, dictimplementation):
     IteratorImplementation.__init__(self, space, dictimplementation)
     self.iterator = dictimplementation.content.iteritems()
Exemple #10
0
 def __init__(self, space, dictimplementation):
     IteratorImplementation.__init__(self, space, dictimplementation)
     self.iterator = dictimplementation.w_type.dict_w.iteritems()
Exemple #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()
Exemple #12
0
 def __init__(self, space, dictimpl, itemlist):
     IteratorImplementation.__init__(self, space, dictimpl)
     self.itemlist = itemlist
Exemple #13
0
 def __init__(self, space, dictimplementation):
     IteratorImplementation.__init__(self, space, dictimplementation)
     self.iterator = dictimplementation.content.iteritems()
Exemple #14
0
 def __init__(self, space, dictimpl, itemlist):
     IteratorImplementation.__init__(self, space, dictimpl)
     self.itemlist = itemlist