In the python bindings of libvirt, could we please add the following code to the virDomain class?  

def state(self):
    """return the state of the dom object"""
    return self.info()[0]

This helper function would make the world of difference when coding against the libvirt api. 

--

  Russell J Ballestrini