'Compares version ordering according to the spec.'

def _compare(self, other, method):

    if (not isinstance(other, Version)):
        return False
    for attr in ('major', 'minor', 'micro', 'patch'):
        my_version = getattr(self, attr)
        other_version = getattr(other, attr)
        if (my_version is None):
            my_version = 0
        if (other_version is None):
            other_version = 0
        if (my_version != other_version):
            return method(my_version, other_version)
    my_status = (self.status if self.status else '')
    other_status = (other.status if other.status else '')
    return method(my_status, other_status)
