def dpop(self, **kwds):
        """Pops and returns the first element that matches the
        given specification. If no elements are found
        raises IndexError.
        """
        item = self.dget(**kwds)
        self.remove(item)
        return item
Pops and returns the first element that matches the
        given specification. If no elements are found
        raises IndexError.