Exemplo n.º 1
0
 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)
Exemplo n.º 2
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)