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