'Intersect self\'s versions with other.
Return whether the CompilerSpec changed.'

def constrain(self, other):

    other = self._autospec(other)
    if (not other.satisfies(self)):
        raise UnsatisfiableCompilerSpecError(other, self)
    return self.versions.intersect(other.versions)
