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
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)
def new_array_from_rdict(self, rdict_w): return W_ArrayObject.new_array_from_rdict(self, rdict_w)
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