def METHOD_NAME(self, offset, whence=0):
    if whence == 0:
        self._point = offset
    elif whence == 1:
        self._point += offset
    else:
        raise ValueError("whence must be 0, or 1")
    if self._point < 0:
        self._point = 0  # XXX is this right?