Exemplo n.º 1
0
 def __getattr__(self, attr):
     if attr == "length":
         return _cODP.ODPNamedNodeMap_getLength(self.this)
     else:
         raise AttributeError, attr
Exemplo n.º 2
0
 def __len__(self):
     return int(_cODP.ODPNamedNodeMap_getLength(self.this))