def __getattribute__ ( self , attr ) : if ( attr not in object . __getattribute__ ( self , '__dict__' ) and attr not in Etree . __dict__ ) : return object . __getattribute__ ( self . _etree , attr ) return object . __getattribute__ ( self , attr )
python elementtree get attribute
Retrieve attr from current active etree implementation
def __getattribute__(self, attr):
        """Retrieve attr from current active etree implementation"""
        if (attr not in object.__getattribute__(self, '__dict__')
                and attr not in Etree.__dict__):
            return object.__getattribute__(self._etree, attr)
        return object.__getattribute__(self, attr)