Esempio n. 1
0
 def _hasItemType(self, LIST):
     if self.known_maxlength:
         _, ARRAY = LIST._lookup_field('items')
         return ootype.hasItemType(ARRAY)
     else:
         return ootype.hasItemType(LIST)
Esempio n. 2
0
 def _hasItemType(self, LIST):
     return ootype.hasItemType(LIST)
Esempio n. 3
0
 def _setup_repr(self):
     if 'item_repr' not in self.__dict__:
         self.external_item_repr, self.item_repr = \
                 self._externalvsinternal(self.rtyper, self._item_repr_computer())
     if not ootype.hasItemType(self.lowleveltype):
         ootype.setItemType(self.lowleveltype, self.item_repr.lowleveltype)
Esempio n. 4
0
 def _hasItemType(self, LIST):
     if self.known_maxlength:
         _, ARRAY = LIST._lookup_field('items')
         return ootype.hasItemType(ARRAY)
     else:
         return ootype.hasItemType(LIST)
Esempio n. 5
0
 def _hasItemType(self, LIST):
     return ootype.hasItemType(LIST)
Esempio n. 6
0
 def _setup_repr(self):
     if 'item_repr' not in self.__dict__:
         self.external_item_repr, self.item_repr = \
                 self._externalvsinternal(self.rtyper, self._item_repr_computer())
     if not ootype.hasItemType(self.lowleveltype):
         ootype.setItemType(self.lowleveltype, self.item_repr.lowleveltype)