def __rfloordiv__(self, other): assert type(other) in scalar_types return Vector3(operator.floordiv(other, self.x), operator.floordiv(other, self.y), operator.floordiv(other, self.z))