コード例 #1
0
ファイル: kwargsdict.py プロジェクト: Debug-Orz/Sypy
 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
ファイル: kwargsdict.py プロジェクト: nipengadmaster/pypy
 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
ファイル: sharingdict.py プロジェクト: e2pluginss/plexnet
 def __init__(self, space, dictimplementation):
     IteratorImplementation.__init__(self, space, dictimplementation)
     self.iterator = dictimplementation.structure.keys.iteritems()
コード例 #7
0
ファイル: sharingdict.py プロジェクト: e2pluginss/plexnet
 def __init__(self, space, dictimplementation):
     IteratorImplementation.__init__(self, space, dictimplementation)
     self.values = dictimplementation.entries
コード例 #8
0
ファイル: dictbucket.py プロジェクト: e2pluginss/plexnet
 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
ファイル: dictproxyobject.py プロジェクト: pombredanne/pypy
 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