예제 #1
0
 def get_rdict_array(self, space):
     if self.w_rdict_array is None:
         dct_w = self.get_instance_attrs(space.ec.interpreter)
         self.w_rdict_array = (W_ArrayObject.new_array_from_rdict(
             space, dct_w))
     return self.w_rdict_array
예제 #2
0
파일: objspace.py 프로젝트: sk-/hippyvm
 def new_array_from_dict(self, dict_w):
     "NOT_RPYTHON: for tests only (gets a random ordering)"
     rdict_w = OrderedDict()
     for key, w_value in dict_w.items():
         rdict_w[key] = w_value
     return W_ArrayObject.new_array_from_rdict(self, rdict_w)
예제 #3
0
파일: objspace.py 프로젝트: sk-/hippyvm
 def new_array_from_rdict(self, rdict_w):
     return W_ArrayObject.new_array_from_rdict(self, rdict_w)
예제 #4
0
 def get_rdict_array(self, space):
     if self.w_rdict_array is None:
         dct_w = self.get_instance_attrs(space.ec.interpreter)
         self.w_rdict_array = (
             W_ArrayObject.new_array_from_rdict(space, dct_w))
     return self.w_rdict_array
예제 #5
0
 def new_array_from_dict(self, dict_w):
     "NOT_RPYTHON: for tests only (gets a random ordering)"
     rdict_w = OrderedDict()
     for key, w_value in dict_w.items():
         rdict_w[key] = w_value
     return W_ArrayObject.new_array_from_rdict(self, rdict_w)
예제 #6
0
 def new_array_from_rdict(self, rdict_w):
     return W_ArrayObject.new_array_from_rdict(self, rdict_w)