def _to_base_type(self, value):
        # convert from signed -> unsigned
        if 0 < value:
            value += 2 ** self._bits
        assert 0 <= value < 2 ** self._bits
        # Return number as a zero-padded hex string with correct number of
        # digits:
        return '%0*x' % (self._bits // 4, value)
dataset/ETHPy150Open GoogleCloudPlatform/python-docs-samples/appengine/ndb/property_subclasses/my_models.py/BoundedLongIntegerProperty._to_base_type/swapped operands of `<`