示例#1
0
  def __getitem__(self,i):
#    if (i>=0) and (i<len(self)):
#      return self.item(i)
#    raise IndexError
    if i<0:
      i+=_cODP.ODPNodeList_getLength(self.this)
    if (i>=0) and (i<_cODP.ODPNodeList_getLength(self.this)):
      return _ntype(_cODP.ODPNodeList_item(self.this,i))
    raise IndexError
示例#2
0
 def item(self,i):
   return _ntype(_cODP.ODPNodeList_item(self.this,i))
示例#3
0
 def item(self, *args):
     return _cODP.ODPNodeList_item(self, *args)