示例#1
0
文件: rlist.py 项目: enyst/plexnet
 def rtype_method_append(self, hop):
     if getattr(self.listitem, 'hint_maxlength', False):
         v_lst, v_value = hop.inputargs(self, self.item_repr)
         hop.exception_cannot_occur()
         hop.gendirectcall(ll_append_noresize, v_lst, v_value)
     else:
         AbstractListRepr.rtype_method_append(self, hop)
示例#2
0
文件: rlist.py 项目: purepython/pypy
 def rtype_method_append(self, hop):
     if getattr(self.listitem, 'hint_maxlength', False):
         v_lst, v_value = hop.inputargs(self, self.item_repr)
         hop.exception_cannot_occur()
         hop.gendirectcall(ll_append_noresize, v_lst, v_value)
     else:
         AbstractListRepr.rtype_method_append(self, hop)
示例#3
0
文件: rlist.py 项目: alkorzt/pypy
 def rtype_method_append(self, hop):
     if self.known_maxlength:
         v_lst, v_value = hop.inputargs(self, self.item_repr)
         hop.exception_cannot_occur()
         hop.gendirectcall(ll_append_maxlength, v_lst, v_value)
     else:
         return AbstractListRepr.rtype_method_append(self, hop)
示例#4
0
 def rtype_method_append(self, hop):
     if self.known_maxlength:
         v_lst, v_value = hop.inputargs(self, self.item_repr)
         hop.exception_cannot_occur()
         hop.gendirectcall(ll_append_maxlength, v_lst, v_value)
     else:
         return AbstractListRepr.rtype_method_append(self, hop)