예제 #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
예제 #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
예제 #3
0
파일: celldict.py 프로젝트: purepython/pypy
 def __init__(self, space, strategy, dictimplementation):
     IteratorImplementation.__init__(self, space, dictimplementation)
     dict_w = strategy.unerase(dictimplementation.dstorage)
     self.iterator = dict_w.iteritems()
예제 #4
0
파일: mapdict.py 프로젝트: Debug-Orz/Sypy
 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()
예제 #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()
예제 #6
0
 def __init__(self, space, dictimplementation):
     IteratorImplementation.__init__(self, space, dictimplementation)
     self.iterator = dictimplementation.structure.keys.iteritems()
예제 #7
0
 def __init__(self, space, dictimplementation):
     IteratorImplementation.__init__(self, space, dictimplementation)
     self.values = dictimplementation.entries
예제 #8
0
 def __init__(self, space, dictimplementation):
     IteratorImplementation.__init__(self, space, dictimplementation)
     self.index = 0
     self.node = None
예제 #9
0
 def __init__(self, space, dictimplementation):
     IteratorImplementation.__init__(self, space, dictimplementation)
     self.iterator = dictimplementation.content.iteritems()
예제 #10
0
 def __init__(self, space, dictimplementation):
     IteratorImplementation.__init__(self, space, dictimplementation)
     self.iterator = dictimplementation.w_type.dict_w.iteritems()
예제 #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()
예제 #12
0
파일: inlinedict.py 프로젝트: alkorzt/pypy
 def __init__(self, space, dictimpl, itemlist):
     IteratorImplementation.__init__(self, space, dictimpl)
     self.itemlist = itemlist
예제 #13
0
파일: celldict.py 프로젝트: alkorzt/pypy
 def __init__(self, space, dictimplementation):
     IteratorImplementation.__init__(self, space, dictimplementation)
     self.iterator = dictimplementation.content.iteritems()
예제 #14
0
 def __init__(self, space, dictimpl, itemlist):
     IteratorImplementation.__init__(self, space, dictimpl)
     self.itemlist = itemlist